Skip to content

Commit 9641c84

Browse files
committed
build: use a more appropriate naming for the snapshot deploy GitHub token (#26368)
(cherry picked from commit c44ae93)
1 parent b52cd63 commit 9641c84

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

scripts/deploy/publish-build-artifacts.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ set -e
99
# Go to the project root directory
1010
cd $(dirname ${0})/../..
1111

12-
if [ -z ${MATERIAL2_BUILDS_TOKEN} ]; then
12+
if [ -z ${SNAPSHOT_BUILDS_GITHUB_TOKEN} ]; then
1313
echo "Error: No access token for GitHub could be found." \
14-
"Please set the environment variable 'MATERIAL2_BUILDS_TOKEN'."
14+
"Please set the environment variable 'SNAPSHOT_BUILDS_GITHUB_TOKEN'."
1515
exit 1
1616
fi
1717

@@ -98,7 +98,7 @@ publishPackage() {
9898
git config user.email "${commitAuthorEmail}"
9999
git config credential.helper "store --file=.git/credentials"
100100

101-
echo "https://${MATERIAL2_BUILDS_TOKEN}:@github.com" > .git/credentials
101+
echo "https://${SNAPSHOT_BUILDS_GITHUB_TOKEN}:@github.com" > .git/credentials
102102

103103
echo "Git configuration has been updated to match the last commit author. Publishing now.."
104104

scripts/deploy/publish-docs-content.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ set -e
88

99
cd "$(dirname $0)/../../"
1010

11-
if [ -z ${MATERIAL2_BUILDS_TOKEN} ]; then
11+
if [ -z ${SNAPSHOT_BUILDS_GITHUB_TOKEN} ]; then
1212
echo "Error: No access token for GitHub could be found." \
13-
"Please set the environment variable 'MATERIAL2_BUILDS_TOKEN'."
13+
"Please set the environment variable 'SNAPSHOT_BUILDS_GITHUB_TOKEN'."
1414
exit 1
1515
fi
1616

@@ -96,7 +96,7 @@ git config user.name "$commitAuthorName"
9696
git config user.email "$commitAuthorEmail"
9797
git config credential.helper "store --file=.git/credentials"
9898

99-
echo "https://${MATERIAL2_BUILDS_TOKEN}:@github.com" > .git/credentials
99+
echo "https://${SNAPSHOT_BUILDS_GITHUB_TOKEN}:@github.com" > .git/credentials
100100

101101
echo "Credentials for docs-content repository are now set up. Publishing.."
102102

0 commit comments

Comments
 (0)