Skip to content

Commit

Permalink
build: update generate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Apr 1, 2024
1 parent 2c892be commit 2eca3c2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/generate.yml
Expand Up @@ -28,13 +28,18 @@ jobs:
- run: task docs:releases
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/install-nix-action@v26
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- run: task docs:generate
- run: task schema:generate
- run: task nix:licenses:generate
- run: task nix:flake:update
- run: task nix:flake:update-vendor
- run: task schema:validate
- uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5
with:
commit_message: "chore: docs auto-update"
commit_message: "chore: auto-update generated files"
branch: main
commit_user_name: actions-user
commit_user_email: actions@github.com
Expand Down
7 changes: 7 additions & 0 deletions Taskfile.yml
Expand Up @@ -75,6 +75,13 @@ tasks:
- task: nix:flake:update-vendor
- nix build .

nix:flake:update:
desc: update flake.lock
cmds:
- nix flake update
generates:
- flake.lock

nix:flake:update-vendor:
desc: update default flake package vendor hash
cmds:
Expand Down

0 comments on commit 2eca3c2

Please sign in to comment.