ci(release): skip git status check in prep phase

This commit is contained in:
Cotes Chung 2024-05-11 14:58:23 +08:00
parent 37827d81e5
commit 9ffd997c3b
No known key found for this signature in database
GPG key ID: 0D9E54843167A808

View file

@ -56,11 +56,13 @@ _check_cli() {
} }
_check_git() { _check_git() {
$opt_pre || (
# ensure that changes have been committed # ensure that changes have been committed
if [[ -n $(git status . -s) ]]; then if [[ -n $(git status . -s) ]]; then
echo "> Abort: Commit the staged files first, and then run this tool again." echo "> Abort: Commit the staged files first, and then run this tool again."
exit 1 exit 1
fi fi
)
$opt_pkg || ( $opt_pkg || (
if [[ "$(git branch --show-current)" != "$RELEASE_BRANCH" ]]; then if [[ "$(git branch --show-current)" != "$RELEASE_BRANCH" ]]; then