From bb1ae95cfa9dc353b00fc45fcba247fe30ce3dd2 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 5 Jun 2024 19:50:50 +0200 Subject: [PATCH] better check for changes --- .github/workflows/update-nock-files.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-nock-files.yml b/.github/workflows/update-nock-files.yml index 5e1ca0707..3a2202377 100644 --- a/.github/workflows/update-nock-files.yml +++ b/.github/workflows/update-nock-files.yml @@ -74,7 +74,12 @@ jobs: - name: Check if anything has changed id: contains-changes - run: echo "result=$(git --no-pager diff --quiet -- tests/nocks.db || echo "yes")" >> $GITHUB_OUTPUT + run: | + sqlite3 tests/nocks.db .dump > tests/nocks.sql + git add tests/nocks.sql + git checkout HEAD -- tests/nocks.db + sqlite3 tests/nocks.db .dump > tests/nocks.sql + echo "result=$(git --no-pager diff --quiet -- tests/nocks.sql || echo "yes")" >> "$GITHUB_OUTPUT" shell: bash - name: Commit changes