Skip to content

Commit

Permalink
ci: ensure release can't be dirty (#4824)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdeal authored Oct 13, 2023
1 parent be86a6f commit 04c5306
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hack/release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
source "${SCRIPT_DIR}/common.sh"
config

release "$GIT_TAG"
# Don't release with a dirty commit!
if [[ "$(git status --porcelain)" != "" ]]; then
exit 1
fi

release "$GIT_TAG"
5 changes: 5 additions & 0 deletions hack/release/snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
source "${SCRIPT_DIR}/common.sh"
config

# Don't release with a dirty commit!
if [[ "$(git status --porcelain)" != "" ]]; then
exit 1
fi

snapshot "$HEAD_HASH"

0 comments on commit 04c5306

Please sign in to comment.