Compare commits

...

2 Commits

Author SHA1 Message Date
c9862e6efc workflow: change cron time
Some checks failed
Update Nix Flake / update-flake (push) Failing after 6s
2025-03-22 10:51:21 +01:00
ed52562b55 workflow: use git diff --cached 2025-03-22 10:51:13 +01:00

View File

@ -2,7 +2,7 @@ name: Update Nix Flake
on: on:
schedule: schedule:
- cron: "30 0 * * *" # daily run - cron: "45 0 * * *" # daily run
workflow_dispatch: {} workflow_dispatch: {}
jobs: jobs:
@ -50,9 +50,8 @@ jobs:
shell: bash shell: bash
run: | run: |
git add flake.lock git add flake.lock
if git diff --quiet; then git status
echo "No changes to commit." git diff --cached --quiet && echo "No changes to commit." && exit 0
else
git commit -m "Update flake.lock $(date -I)" git commit -m "Update flake.lock $(date -I)"
git push origin flake-updates git push origin flake-updates
fi