Skip to content

Commit

Permalink
Publish script: check that all changes are committed
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon committed Jan 8, 2022
1 parent 4977de3 commit 37f1c87
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extras/scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ set -eu

cd "$(dirname "$0")/../.."

if ! git diff --quiet --exit-code; then
echo "Repository contains uncommitted changes"
exit
fi

VERSION="$1"
DATE=$(date +%F)
TAG="v$VERSION"
Expand Down

0 comments on commit 37f1c87

Please sign in to comment.