2021-11-03 02:21:46 +02:00
|
|
|
name: generate
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-11-12 22:23:32 +02:00
|
|
|
- 'main'
|
2021-11-03 02:21:46 +02:00
|
|
|
paths:
|
|
|
|
- '.github/workflows/generate.yml'
|
2021-11-18 15:01:31 +02:00
|
|
|
- pkg/config/config.go
|
2021-11-03 02:21:46 +02:00
|
|
|
- CONTRIBUTING.md
|
|
|
|
- USERS.md
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
docs:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-17 03:29:18 +02:00
|
|
|
- uses: actions/checkout@b0e28b5ac45a892f91e7d036f8200cf5ed489415 # v3
|
2021-11-03 02:31:53 +02:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.GH_PAT }}
|
2022-03-17 13:47:57 +02:00
|
|
|
- uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # v2
|
2021-11-03 02:21:46 +02:00
|
|
|
with:
|
2022-03-17 04:28:13 +02:00
|
|
|
go-version: 1.18
|
2022-03-28 14:36:15 +02:00
|
|
|
- uses: arduino/setup-task@ca745e18916de727f841ec824ac20a615f1cddea # v1
|
2021-11-03 02:21:46 +02:00
|
|
|
- run: task docs:generate
|
2021-11-18 15:01:31 +02:00
|
|
|
- run: task schema:generate
|
2022-03-22 14:14:35 +02:00
|
|
|
- uses: stefanzweifel/git-auto-commit-action@c4b132ec2c77a21fcab564bd3c92610cee84b894 # v4
|
2021-11-03 02:21:46 +02:00
|
|
|
with:
|
|
|
|
commit_message: "docs: update"
|
2021-11-12 22:23:32 +02:00
|
|
|
branch: main
|
2021-12-07 04:18:20 +02:00
|
|
|
commit_user_name: actions-user
|
|
|
|
commit_user_email: actions@github.com
|
|
|
|
commit_author: actions-user <actions@github.com>
|