Skip to content

Commit 7f301a8

Browse files
authored
ci: publish snapshots to correct builds repository branch (#28083)
With 1d67721, the snapshots CI job was migrated from CircleCI to GitHub actions, but the underlying scripts were not updated to no longer depend on CircleCI specifics.
1 parent c38e72f commit 7f301a8

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
@@ -40,7 +40,7 @@ publishPackage() {
4040

4141
buildDir="$(pwd)/dist/releases/${packageName}"
4242
buildVersion=$(node -pe "require('./package.json').version")
43-
branchName=${CIRCLE_BRANCH:-'main'}
43+
branchName=${GITHUB_REF_NAME:-'main'}
4444

4545
commitSha=$(git rev-parse --short HEAD)
4646
commitAuthorName=$(git --no-pager show -s --format='%an' HEAD)

scripts/deploy/publish-docs-content.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ docsContentRepoUrl="https://github.com/angular/material2-docs-content"
3434
buildVersion=$(node -pe "require('./package.json').version")
3535

3636
# Name of the branch that is currently being deployed.
37-
branchName=${CIRCLE_BRANCH:-'main'}
37+
branchName=${GITHUB_REF_NAME:-'main'}
3838

3939
# Additional information about the last commit for docs-content commits.
4040
commitSha=$(git rev-parse --short HEAD)

0 commit comments

Comments
 (0)