Exit quietly and early if there is nothing to do during update
This commit is contained in:
parent
df0f31e428
commit
360e5d95c4
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,7 @@ build-nixos-configurations:
|
|||
- job: update-flake-lock
|
||||
artifacts: true
|
||||
script:
|
||||
- git diff --quiet && exit 0 || true
|
||||
- nix-env --quiet -j8 -iA cachix -f https://cachix.org/api/v1/install
|
||||
- cachix --version
|
||||
- cachix authtoken $CACHIX_AUTH_TOKEN
|
||||
|
@ -40,6 +41,7 @@ commit-and-push:
|
|||
artifacts: true
|
||||
- job: build-nixos-configurations
|
||||
script:
|
||||
- git diff --quiet && exit 0 || true
|
||||
- git add flake.lock
|
||||
- git config user.email "$UPDATE_COMMIT_EMAIL"
|
||||
- git config user.name "$UPDATE_COMMIT_NAME"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue