Skip to content

Commit 14b972f

Browse files
committed
ci: fix an issue with reporting schema discrepancies
1 parent c5a55b2 commit 14b972f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/ci.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,7 @@ jobs:
259259
260260
- name: Diff | Config Schema
261261
run: |
262-
git diff --quiet schemas/config.json
263-
if [ $? -gt 0 ]; then
264-
echo "::error::Uncommitted changes for schemas/config.json (run `cargo run -- config generate-schema schemas/config.json` after making changes to the configuration model)"
262+
if ! git diff --quiet schemas/config.json; then
263+
echo "::error::Uncommitted changes for schemas/config.json (run 'cargo run -- config generate-schema schemas/config.json' after making changes to the configuration model)"
265264
exit 1
266265
fi

0 commit comments

Comments
 (0)