37 lines (34 loc) · 1.07 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
name: generate
on:
push:
branches:
- 'main'
paths:
- '.github/workflows/generate.yml'
- pkg/config/config.go
- CONTRIBUTING.md
- USERS.md
permissions:
contents: read
jobs:
docs:
permissions:
contents: write # for stefanzweifel/git-auto-commit-action to push code in repo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
with:
token: ${{ secrets.GH_PAT }}
- uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # v3
with:
go-version: '>=1.19.1'
- uses: arduino/setup-task@ca745e18916de727f841ec824ac20a615f1cddea # v1
- run: task docs:generate
- run: task schema:generate
- uses: stefanzweifel/git-auto-commit-action@6c32682a4040e023c054b2fc60a7cf65cc77f7ad # v4
with:
commit_message: "chore: docs auto-update"
branch: main
commit_user_name: actions-user
commit_user_email: actions@github.com
commit_author: actions-user <actions@github.com>