From 1c383c0c547abd8ef83bf9d2d81f144a12834efd Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Wed, 8 Nov 2023 13:53:42 +0000 Subject: [PATCH] ci: publish snapshots to correct builds repository branch With https://github.com/angular/components/commit/1d677215ee047967dc5e6f25ccb09e0225c16f1a, 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. --- scripts/deploy/publish-build-artifacts.sh | 2 +- scripts/deploy/publish-docs-content.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/deploy/publish-build-artifacts.sh b/scripts/deploy/publish-build-artifacts.sh index 33101d5c2f80..12c7804da41f 100755 --- a/scripts/deploy/publish-build-artifacts.sh +++ b/scripts/deploy/publish-build-artifacts.sh @@ -40,7 +40,7 @@ publishPackage() { buildDir="$(pwd)/dist/releases/${packageName}" buildVersion=$(node -pe "require('./package.json').version") - branchName=${CIRCLE_BRANCH:-'main'} + branchName=${GITHUB_REF_NAME:-'main'} commitSha=$(git rev-parse --short HEAD) commitAuthorName=$(git --no-pager show -s --format='%an' HEAD) diff --git a/scripts/deploy/publish-docs-content.sh b/scripts/deploy/publish-docs-content.sh index 00922c988d09..d69cb82bd85a 100755 --- a/scripts/deploy/publish-docs-content.sh +++ b/scripts/deploy/publish-docs-content.sh @@ -34,7 +34,7 @@ docsContentRepoUrl="https://github.com/angular/material2-docs-content" buildVersion=$(node -pe "require('./package.json').version") # Name of the branch that is currently being deployed. -branchName=${CIRCLE_BRANCH:-'main'} +branchName=${GITHUB_REF_NAME:-'main'} # Additional information about the last commit for docs-content commits. commitSha=$(git rev-parse --short HEAD)