Use git diff --exit-code in conditional
parent
1403f21d1c
commit
2c3e0df6e9
|
|
@ -33,7 +33,7 @@ jobs:
|
|||
- name: Update zig cache hash
|
||||
run: |
|
||||
# Only proceed if build.zig.zon has changed
|
||||
if [ "$(git status build.zig.zon --porcelain)" ]; then
|
||||
if ! git diff --exit-code build.zig.zon; then
|
||||
nix develop -c ./nix/build-support/check-zig-cache-hash.sh --update
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue