Skip to content

Commit ddc2e70

Browse files
devversionthePunderWoman
authored andcommitted
ci: override existing snapshot tag if publish snapshot job is restarted (angular#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 angular#46366
1 parent 469d9b6 commit ddc2e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/ci/publish-build-artifacts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function publishRepo {
9696
git config user.email "${COMMITTER_USER_EMAIL}" && \
9797
git add --all && \
9898
git commit -m "${COMMIT_MSG}" --quiet && \
99-
git tag "${BUILD_VER}" && \
99+
git tag "${BUILD_VER}" --force && \
100100
git push origin "${BRANCH}" --tags --force
101101
)
102102
}

0 commit comments

Comments
 (0)