Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 3317180

Browse files
Splaktarmmalerba
authored andcommitted
chore(ci): update git credential syntax (#11623)
add more log statements add cleanup to bower-material-release.sh Relates to #11592.
1 parent cc9646a commit 3317180

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

scripts/bower-material-release.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,12 @@ function run {
7373
git push -q origin master
7474
git push -q origin v$VERSION
7575

76-
echo "-- Version $VERSION pushed successfully to angular/bower-material!"
77-
7876
cd ../
77+
78+
echo "-- Cleanup..."
79+
rm -rf bower-material/
80+
81+
echo "-- Version $VERSION pushed successfully to angular/bower-material!"
7982
}
8083

8184
source $(dirname $0)/utils.inc

scripts/snapshot-docs-site.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,16 @@ function run {
3232
commitAuthorName=$(git --no-pager show -s --format='%an' HEAD)
3333
commitAuthorEmail=$(git --no-pager show -s --format='%ae' HEAD)
3434

35-
cd code.material.angularjs.org
35+
cd code.material.angularjs.org/
3636

3737
git config user.name "${commitAuthorName}"
3838
git config user.email "${commitAuthorEmail}"
39+
git config credential.helper "store --file .git/credentials"
3940
# Disable CircleCI's forced use of SSH with GitHub
41+
echo "-- Removing CircleCI's forced use of SSH..."
4042
git config --global --unset url.ssh://[email protected]
4143
# GitHub personal access token with push permission specified as environment variable
42-
git config credential.helper "store --file=.git/credentials"
44+
echo "-- Storing credentials..."
4345
echo "https://${ANGULARJS_MATERIAL_DOCS_SITE_TOKEN}:@github.com" > .git/credentials
4446

4547
echo "-- Committing snapshot..."
@@ -52,7 +54,7 @@ function run {
5254
cd ../
5355

5456
echo "-- Cleanup..."
55-
rm -rf code.material.angularjs.org
57+
rm -rf code.material.angularjs.org/
5658

5759
echo "-- Successfully pushed the snapshot to angular/code.material.angularjs.org!!"
5860
}

0 commit comments

Comments
 (0)