update workflow: commit only on flake changes
All checks were successful
/ deploy (push) Successful in 22s
All checks were successful
/ deploy (push) Successful in 22s
This commit is contained in:
parent
a560753e1c
commit
ba06187bd9
1 changed files with 1 additions and 3 deletions
|
|
@ -16,10 +16,8 @@ jobs:
|
|||
git config --global user.name "actions_user"
|
||||
- name: update flake.lock
|
||||
run: nix --extra-experimental-features "nix-command flakes" flake update
|
||||
- name: diff flake.lock
|
||||
run: git diff --exit-code flake.lock && exit 0
|
||||
- name: commit and push update
|
||||
run: |
|
||||
git add .
|
||||
git diff --exit-code flake.lock && exit 0 || echo ""
|
||||
git commit -m "update flake.lock"
|
||||
git push "https://actions_user:${{ secrets.WRITE_TOKEN }}@git.toufy.me/toufy/adonis" "main"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue