1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/.github/workflows/generate.yml

38 lines
1.1 KiB
YAML
Raw Normal View History

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'
- pkg/config/config.go
2021-11-03 02:21:46 +02:00
- CONTRIBUTING.md
- USERS.md
permissions:
contents: read
2021-11-03 02:21:46 +02:00
jobs:
docs:
permissions:
contents: write # for stefanzweifel/git-auto-commit-action to push code in repo
2021-11-03 02:21:46 +02:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b0e28b5ac45a892f91e7d036f8200cf5ed489415 # v3
2021-11-03 02:31:53 +02:00
with:
token: ${{ secrets.GH_PAT }}
- uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # v2
2021-11-03 02:21:46 +02:00
with:
go-version: 1.18
- uses: arduino/setup-task@ca745e18916de727f841ec824ac20a615f1cddea # v1
2021-11-03 02:21:46 +02:00
- run: task docs:generate
- run: task schema:generate
- uses: stefanzweifel/git-auto-commit-action@49620cd3ed21ee620a48530e81dba0d139c9cb80 # v4
2021-11-03 02:21:46 +02:00
with:
commit_message: "docs: update"
2021-11-12 22:23:32 +02:00
branch: main
commit_user_name: actions-user
commit_user_email: actions@github.com
commit_author: actions-user <actions@github.com>