We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 948adf9 commit 49afd16Copy full SHA for 49afd16
release.sh
@@ -25,6 +25,10 @@ if [[ "$(git rev-parse --abbrev-ref HEAD 2>/dev/null)" != "master" ]]; then
25
ERROR_OCCURRED="1"
26
fi
27
28
+if [[ -n "$(git status --porcelain)" ]]; then
29
+ echo "Error: There are untracked changes. Please commit or stash them before releasing."
30
+ ERROR_OCCURRED="1"
31
+fi
32
33
TAG_NAME="version-$NEW_VERSION"
34
if [[ "$(git tag -l "$TAG_NAME")" == "$TAG_NAME" ]]; then
0 commit comments