From 736b5456ea456c40e54306d980cd80436a22c64e Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Tue, 14 Jun 2022 20:34:53 +0000 Subject: [PATCH] ci: override existing snapshot tag if publish snapshot job is restarted (#46366) If the snapshot publish job is manually being restarted, the tag in the snapshot repo might already exist and the job will fail. We can just forcibly re-create the tag (even if it will be at the same revision). We use force mode in a couple of other command as well, such as `git push` of the actual tag and snapshot revision/SHA. PR Close #46366 --- scripts/ci/publish-build-artifacts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/publish-build-artifacts.sh b/scripts/ci/publish-build-artifacts.sh index 87d88f87393..7ffd2a043b3 100755 --- a/scripts/ci/publish-build-artifacts.sh +++ b/scripts/ci/publish-build-artifacts.sh @@ -96,7 +96,7 @@ function publishRepo { git config user.email "${COMMITTER_USER_EMAIL}" && \ git add --all && \ git commit -m "${COMMIT_MSG}" --quiet && \ - git tag "${BUILD_VER}" && \ + git tag "${BUILD_VER}" --force && \ git push origin "${BRANCH}" --tags --force ) }