Skip to content

Commit

Permalink
chore: Add unstaged changes protection to release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dmtrKovalenko committed Nov 28, 2023
1 parent a527a22 commit e1b1e38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

VERSION="$1"

if ! git diff --quiet; then
echo "Error: There are unstaged changes in the repository."
exit 1
fi

git checkout main
git pull

cargo install cargo-edit
Expand Down

0 comments on commit e1b1e38

Please sign in to comment.