Skip to content

Commit

Permalink
ci(release): skip git status check in prep phase
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed May 11, 2024
1 parent 37827d8 commit 9ffd997
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tools/release
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,13 @@ _check_cli() {
}

_check_git() {
# ensure that changes have been committed
if [[ -n $(git status . -s) ]]; then
echo "> Abort: Commit the staged files first, and then run this tool again."
exit 1
fi
$opt_pre || (
# ensure that changes have been committed
if [[ -n $(git status . -s) ]]; then
echo "> Abort: Commit the staged files first, and then run this tool again."
exit 1
fi
)

$opt_pkg || (
if [[ "$(git branch --show-current)" != "$RELEASE_BRANCH" ]]; then
Expand Down

0 comments on commit 9ffd997

Please sign in to comment.