ci: don't publish when we are inside PR

This commit is contained in:
鲁树人 2023-06-10 16:11:26 +01:00
parent 365290905c
commit 2678825f8e

View File

@ -11,7 +11,7 @@ publish_gitea() {
}
# Only publish main branch by default
if [[ "${BRANCH_NAME}" = "main" ]]; then
if [[ "${BRANCH_NAME}" = "main" && -z "$DRONE_PULL_REQUEST" ]]; then
echo 'prepare to publish...'
if [[ -n "${GITEA_API_KEY}" ]]; then