Skip to content

Commit add29fb

Browse files
committed
ci: Fail status
1 parent 53bed91 commit add29fb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/scripts/verify-clean-repo.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
set -eu #Needed so CI fails when anything is wrong
44

5+
#To let the script fail if git status has any issues
6+
git status -u --porcelain -- "$@" > /dev/null
7+
58
if [ $# -gt 0 ]; then
69
#Arguments are pathspecs for git status, used to exclude files for this test
710
if [ -n "$(git status -u --porcelain -- "$@")" ]; then

0 commit comments

Comments
 (0)