Skip to content

Commit

Permalink
docs: update workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Dec 29, 2022
1 parent 232c982 commit 02e2dfd
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/generate-releases.yml
@@ -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>
2 changes: 0 additions & 2 deletions .github/workflows/generate.yml
Expand Up @@ -9,7 +9,6 @@ on:
- pkg/config/config.go
- CONTRIBUTING.md
- USERS.md
workflow_dispatch:

permissions:
contents: read
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Expand Up @@ -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:
Expand Down

0 comments on commit 02e2dfd

Please sign in to comment.