Skip to content

Commit 35dc34f

Browse files
committed
set github-actions git credentials
1 parent 356143f commit 35dc34f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/deploy-gh-pages.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ sitemap() {
2020
echo "Sitemap: $WEBSITE/sitemap.txt" > 'robots.txt'
2121
}
2222

23+
if ! git config user.name; then
24+
echo 'setting'
25+
git config user.name 'github-actions'
26+
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
27+
fi
28+
2329
head=$(git rev-parse HEAD)
2430

2531
git clone -b gh-pages "https://kernc:$GH_PASSWORD@github.com/$GITHUB_REPOSITORY.git" gh-pages

0 commit comments

Comments
 (0)