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 authored and kimbob13 committed May 25, 2024
1 parent e043994 commit 40fae5e
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 40fae5e

Please sign in to comment.