Skip to content

Commit

Permalink
ci: update uncommitted check
Browse files Browse the repository at this point in the history
On PR #90, I forgot to run `cargo run`, but the CI check didn't catch
it, because it was only checking for changes to already committed files,
not for uncommitted files.
  • Loading branch information
conorsch committed Sep 16, 2024
1 parent 2ae7cb1 commit 4f7e921
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/rust-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ jobs:
env:
RUST_LOG: info
working-directory: tools/compiler

- name: Check for Uncommitted Changes
run: git diff --exit-code
working-directory: tools/compiler
shell: bash
run: |
s="$(git status --porcelain)"
if [[ -n "$s" ]]; then
>&2 echo "ERROR: run tools/compiler to generate new outputs"
echo "$s"
exit 1
else
echo "OK: no changes required to registry outputs"
fi

0 comments on commit 4f7e921

Please sign in to comment.