This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (70 loc) · 1.77 KB
/
generate.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: generate
on:
# on new push
push:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issues
issues:
types:
- opened
- edited
- deleted
- transferred
- pinned
- unpinned
- closed
- reopened
- assigned
- unassigned
- labeled
- unlabeled
- locked
- unlocked
- milestoned
- demilestoned
# everyday at 12pm
schedule:
- cron: "0 12 * * *"
jobs:
generate:
concurrency:
group: issues
cancel-in-progress: true
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-go@v4
- name: cache tools
id: tools
uses: actions/cache@v3
with:
path: ~/go/bin
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: ts-graphviz/setup-graphviz@v1
- run: cd misc/deps; make install
- run: go install -v ./gen-graph
- run: make fetch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: make gen-json
- run: make gen-image
- run: make gen-wip
- run: git rm -f .gitignore
- run: git add output/
- uses: stefanzweifel/git-auto-commit-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file_pattern: 'output/*'
commit_message: "build: generate"
branch: generate
push_options: '--force'
create_branch: true
commit_user_name: gnobot
commit_user_email: [email protected]
commit_author: gnobot 🤖 <[email protected]>