Skip to content

Commit c5af37f

Browse files
committed
Makefile: avoid releasing with uncommitted changes
Signed-off-by: Elijah Newren <[email protected]>
1 parent fd64b0c commit c5af37f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ github_release: update_docs
9191
test -n "$(GITHUB_COM_TOKEN)"
9292
test -n "$(TAGNAME)"
9393
test -n "$$COMMIT"
94+
# Make sure we don't have any staged or unstaged changes
95+
git diff --quiet --staged HEAD && git diff --quiet HEAD
9496
# Make sure 'jq' is installed
9597
type -p jq
9698
# Tag the release, push it to GitHub

0 commit comments

Comments
 (0)