Skip to content

Commit

Permalink
fix(release): missing git is dirty function
Browse files Browse the repository at this point in the history
  • Loading branch information
gorillamoe committed Jun 29, 2024
1 parent c70dbba commit cf37ab0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ set_version() {
./scripts/set-version.sh
}

check_git_dirty() {
if [[ -n $(git status -s) ]]; then
echo "Working directory is dirty. Please commit or stash your changes before releasing."
exit 1
fi
}

do_gh_release() {
echo "Creating new release $GH_TAG"
gh release create --generate-notes "$GH_TAG"
Expand Down

0 comments on commit cf37ab0

Please sign in to comment.