2021-11-02 21:21:46 -03:00
|
|
|
name: generate
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-11-12 17:23:32 -03:00
|
|
|
- 'main'
|
2021-11-02 21:21:46 -03:00
|
|
|
paths:
|
|
|
|
- '.github/workflows/generate.yml'
|
2021-11-18 10:01:31 -03:00
|
|
|
- pkg/config/config.go
|
2021-11-02 21:21:46 -03:00
|
|
|
- CONTRIBUTING.md
|
|
|
|
- USERS.md
|
|
|
|
|
2022-04-13 12:42:11 -05:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-11-02 21:21:46 -03:00
|
|
|
jobs:
|
|
|
|
docs:
|
2022-04-13 12:42:11 -05:00
|
|
|
permissions:
|
|
|
|
contents: write # for stefanzweifel/git-auto-commit-action to push code in repo
|
2021-11-02 21:21:46 -03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-08-19 09:11:36 -03:00
|
|
|
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
|
2021-11-02 21:31:53 -03:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.GH_PAT }}
|
2022-08-24 10:02:10 -03:00
|
|
|
- uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # v3
|
2021-11-02 21:21:46 -03:00
|
|
|
with:
|
2022-09-22 16:00:05 -03:00
|
|
|
go-version: '>=1.19.1'
|
2022-03-28 09:36:15 -03:00
|
|
|
- uses: arduino/setup-task@ca745e18916de727f841ec824ac20a615f1cddea # v1
|
2021-11-02 21:21:46 -03:00
|
|
|
- run: task docs:generate
|
2021-11-18 10:01:31 -03:00
|
|
|
- run: task schema:generate
|
2022-04-13 09:37:34 -03:00
|
|
|
- uses: stefanzweifel/git-auto-commit-action@49620cd3ed21ee620a48530e81dba0d139c9cb80 # v4
|
2021-11-02 21:21:46 -03:00
|
|
|
with:
|
2022-05-10 13:10:12 -03:00
|
|
|
commit_message: "chore: docs auto-update"
|
2021-11-12 17:23:32 -03:00
|
|
|
branch: main
|
2021-12-06 23:18:20 -03:00
|
|
|
commit_user_name: actions-user
|
|
|
|
commit_user_email: actions@github.com
|
|
|
|
commit_author: actions-user <actions@github.com>
|