Skip to content

Commit

Permalink
ci: override existing snapshot tag if publish snapshot job is restart…
Browse files Browse the repository at this point in the history
…ed (#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
  • Loading branch information
devversion authored and jessicajaniuk committed Jun 15, 2022
1 parent 469d9b6 commit ddc2e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ci/publish-build-artifacts.sh
Expand Up @@ -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
)
}
Expand Down

0 comments on commit ddc2e70

Please sign in to comment.