Skip to content

Commit

Permalink
better check for changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Jun 5, 2024
1 parent e90e4be commit bb1ae95
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/update-nock-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb1ae95

Please sign in to comment.