diff --git a/.github/workflows/update-nock-files.yml b/.github/workflows/update-nock-files.yml index 60f8acb28..5f3426e08 100644 --- a/.github/workflows/update-nock-files.yml +++ b/.github/workflows/update-nock-files.yml @@ -49,7 +49,13 @@ 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 > /tmp/before.sql + cp tests/nocks.db tests/nocks.db.new + git checkout HEAD -- tests/nocks.db + sqlite3 tests/nocks.db .dump > /tmp/after.sql + echo "result=$(git --no-pager diff --quiet --no-index /tmp/before.sql /tmp/after.sql || echo "yes")" >> "$GITHUB_OUTPUT" + mv tests/nocks.db.new tests/nocks.db shell: bash - name: Commit changes