Skip to content

Commit

Permalink
fail pr action if git is in ditry state (#400)
Browse files Browse the repository at this point in the history
Signed-off-by: Manabu McCloskey <[email protected]>
  • Loading branch information
nabuskey authored Oct 9, 2024
1 parent 36c22a1 commit 7a9bf83
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,9 @@ jobs:
- name: Run tests
run: |
make build
if [[ -n $(git status --porcelain) ]]; then
echo "git is in dirty state";
git status --porcelain=2 --branch
exit 1
fi
make test

0 comments on commit 7a9bf83

Please sign in to comment.