Skip to content

Commit d303ae8

Browse files
committed
fix: validate GH_AUTH_TOKEN for github only, init NOSYNC mode
1 parent 488bfc9 commit d303ae8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

please

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,14 +238,15 @@ while [[ $# -gt 0 ]]; do
238238
done
239239

240240
[[ $REPO ]] || error "$(pwd) is not git repo" 1
241-
[[ -z "$GH_AUTH_TOKEN" ]] && error "GH_AUTH_TOKEN missing" 1
241+
[[ "$VCS" == *"github"* ]] && [[ -z "$GH_AUTH_TOKEN" ]] && error "GH_AUTH_TOKEN missing" 1
242242

243243
GPUSH=0 # git push pending
244244
MAJOR=${MAJOR:-0} # bump major
245245
MINOR=${MINOR:-0} # bump minor
246246
VFILE=${VFILE:-0} # create version file
247247
CHLOG=${CHLOG:-0} # create changelog file
248248
YES=${YES:-0} # assume yes
249+
NOSYNC=${NOSYNC:-0} # do no sync deploy branch (faster for retry)
249250

250251
GH_REPO="github.com/repos/$REPO" TMP_LOG=$(mktemp -t PLZ.XXXXXXXXXX)
251252
ok "Repository $REPO" && info "Log file $TMP_LOG"

0 commit comments

Comments
 (0)