mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
Use git diff --exit-code in conditional
This commit is contained in:
2
.github/workflows/update-colorschemes.yml
vendored
2
.github/workflows/update-colorschemes.yml
vendored
@ -33,7 +33,7 @@ jobs:
|
|||||||
- name: Update zig cache hash
|
- name: Update zig cache hash
|
||||||
run: |
|
run: |
|
||||||
# Only proceed if build.zig.zon has changed
|
# 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
|
nix develop -c ./nix/build-support/check-zig-cache-hash.sh --update
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user