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
This commit is contained in:
Paul Gschwendtner
2022-06-14 20:34:53 +00:00
committed by Jessica Janiuk
parent 7a376466b3
commit 736b5456ea
+1 -1
View File
@@ -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
)
}