Skip to content

Commit 9ffd997

Browse files
committed
ci(release): skip git status check in prep phase
1 parent 37827d8 commit 9ffd997

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tools/release

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,13 @@ _check_cli() {
5656
}
5757

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

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

0 commit comments

Comments
 (0)