1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

docs: update workflows

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos A Becker 2022-12-29 15:02:27 -03:00
parent 232c982fb0
commit 02e2dfddf2
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
3 changed files with 29 additions and 3 deletions

28
.github/workflows/generate-releases.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: generate-releases
on:
workflow_dispatch:
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@755da8c3cf115ac066823e79a1e1788f8940201b # v3
with:
token: ${{ secrets.GH_PAT }}
- uses: arduino/setup-task@d665c6beebae46ff3f699d7b2fd3f1959de7153c # v1
- run: task docs:releases
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
- uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4
with:
commit_message: "chore: docs releases json auto-update"
branch: main
commit_user_name: actions-user
commit_user_email: actions@github.com
commit_author: actions-user <actions@github.com>

View File

@ -9,7 +9,6 @@ on:
- pkg/config/config.go
- CONTRIBUTING.md
- USERS.md
workflow_dispatch:
permissions:
contents: read
@ -29,7 +28,6 @@ jobs:
cache: true
- uses: arduino/setup-task@d665c6beebae46ff3f699d7b2fd3f1959de7153c # v1
- run: task docs:generate
- run: task docs:releases
- run: task schema:generate
- uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4
with:

View File

@ -22,7 +22,7 @@ jobs:
repo: goreleaser/goreleaser
ref: main
token: ${{ secrets.GH_PAT }}
workflow: generate.yml
workflow: generate-releases.yml
goreleaser-check-pkgs:
runs-on: ubuntu-latest
env: