From 18faa09308e897a16427564331311ed9592bc9d3 Mon Sep 17 00:00:00 2001 From: vvvvv <65471094+vvvvv@users.noreply.github.com> Date: Wed, 13 Nov 2024 12:04:43 +0100 Subject: [PATCH] Update update_zig_nightly.yml --- .github/workflows/update_zig_nightly.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/update_zig_nightly.yml b/.github/workflows/update_zig_nightly.yml index 5952a84..944d9ec 100644 --- a/.github/workflows/update_zig_nightly.yml +++ b/.github/workflows/update_zig_nightly.yml @@ -29,8 +29,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git - git diff --ignore-all-space --ignore-blank-lines --quiet - if [[ $? -ne 0 ]]; then + if ! git diff --ignore-all-space --ignore-blank-lines --quiet; then git add Casks/zig@nightly.rb git commit -m "Workflow update_zig_nightly: Updated Zig Nightly Cask to version $(grep 'version ".*"' | cut -d '"' -f2)" git push