We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53bed91 commit add29fbCopy full SHA for add29fb
1 file changed
.github/scripts/verify-clean-repo.sh
@@ -2,6 +2,9 @@
2
3
set -eu #Needed so CI fails when anything is wrong
4
5
+#To let the script fail if git status has any issues
6
+git status -u --porcelain -- "$@" > /dev/null
7
+
8
if [ $# -gt 0 ]; then
9
#Arguments are pathspecs for git status, used to exclude files for this test
10
if [ -n "$(git status -u --porcelain -- "$@")" ]; then
0 commit comments