forked from cbirkenbeul/docker-homelab
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.27 KB
/
compse-files-summary.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: "Create compose files summary"
concurrency: compose-files
on:
workflow_dispatch:
push:
branches:
- master
paths:
- "compose-files/**"
jobs:
generate-summary:
name: Auto-generate charts summary
runs-on: ubuntu-20.04
steps:
- name: Generate Token
uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.COMPOSE_APP_ID }}
private_key: ${{ secrets.COMPOSE_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ steps.generate-token.outputs.token }}
ref: master
fetch-depth: 0
- name: Install yq
uses: chrisdickinson/setup-yq@latest
with:
yq-version: v4.9.3
- name: Run script
run: |
./hack/gen-compose-summary.sh
- name: Create Commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
push_options: --force
commit_message: Auto-generate compose summary [no ci]
commit_user_name: cbirkenbeul[bot]
commit_user_email: cbirkenbeul[bot]@users.noreply.github.com
commit_author: cbirkenbeul[bot] <cbirkenbeul[bot]@users.noreply.github.com>
file_pattern: compose-files/README.md