Skip to content

Commit

Permalink
ci: fix an issue with reporting schema discrepancies
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Sep 4, 2024
1 parent c5a55b2 commit 14b972f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,7 @@ jobs:
- name: Diff | Config Schema
run: |
git diff --quiet schemas/config.json
if [ $? -gt 0 ]; then
echo "::error::Uncommitted changes for schemas/config.json (run `cargo run -- config generate-schema schemas/config.json` after making changes to the configuration model)"
if ! git diff --quiet schemas/config.json; then
echo "::error::Uncommitted changes for schemas/config.json (run 'cargo run -- config generate-schema schemas/config.json' after making changes to the configuration model)"
exit 1
fi

0 comments on commit 14b972f

Please sign in to comment.