From e3e14c5cde264c7dba5c4e1c9d3a4950a1a938ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Sat, 10 Jun 2023 16:11:26 +0100 Subject: [PATCH] ci: don't publish when we are inside PR --- scripts/publish.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/publish.sh b/scripts/publish.sh index e5325eb..5944771 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -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