From ba06187bd9960b8a36b4cab6407f613ea5838b7d Mon Sep 17 00:00:00 2001 From: toufic ar Date: Mon, 26 Jan 2026 21:22:41 +0200 Subject: [PATCH] update workflow: commit only on flake changes --- .forgejo/workflows/update.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.forgejo/workflows/update.yaml b/.forgejo/workflows/update.yaml index e80fc18..ee71bea 100644 --- a/.forgejo/workflows/update.yaml +++ b/.forgejo/workflows/update.yaml @@ -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"