Skip to content

Commit 7ade500

Browse files
devversionjelbourn
authored andcommitted
build: force push publish artifacts script (#14489)
* Similarly to `angular/angular`, we should publish our artifacts using `git push --force`. This avoids the race condition where another CI job pushes to the builds repository before we try to push with our outdated `HEAD`.
1 parent 88523c3 commit 7ade500

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/deploy/publish-build-artifacts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ publishPackage() {
106106
git add -A
107107
git commit --allow-empty -m "${buildCommitMessage}"
108108
git tag "${buildTagName}"
109-
git push origin ${branchName} --tags
109+
git push origin ${branchName} --tags --force
110110

111111
echo "Published package artifacts for ${packageName}#${buildVersionName} into ${branchName}"
112112
}

scripts/deploy/publish-docs-content.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,6 @@ echo "Credentials for docs-content repository are now set up. Publishing.."
124124
git add -A
125125
git commit --allow-empty -m "${buildCommitMessage}"
126126
git tag "${buildTagName}"
127-
git push origin ${branchName} --tags
127+
git push origin ${branchName} --tags --force
128128

129129
echo "Published docs-content for ${buildVersionName} into ${branchName} successfully"

0 commit comments

Comments
 (0)