From 0e95907db2555a44fd32efac802462b81368b988 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Tue, 21 Jan 2025 15:08:56 -0800 Subject: [PATCH] Switch to `git diff --exit-code` It might be interesting to improve this to configure `diffoscope` as a "difftool" so we can get even more useful diffs if the binaries ever change as a result, but this is at least better than the prior state (as this will give us a diff of any text files in our failing CI). --- .github/workflows/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf8c6e0..c9d78c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,9 +20,7 @@ jobs: - name: Update Binaries run: ./update.sh - name: Verify Changes - run: | - changes="$(git status --porcelain '**/hello' '**/nanoserver*/hello.txt')" - test -z "$changes" + run: git diff --exit-code generate-jobs: needs: verify