mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Jessica Janiuk
parent
7a376466b3
commit
736b5456ea
@@ -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
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user