Skip to content

Commit 64f67c0

Browse files
committed
set github-actions git credentials
1 parent 951eb1b commit 64f67c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/deploy-gh-pages.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ sitemap() {
1818
echo "Sitemap: $WEBSITE/sitemap.txt" > 'robots.txt'
1919
}
2020

21+
if ! git config --get user.email; then
22+
git config user.name 'github-actions'
23+
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
24+
fi
25+
2126
head=$(git rev-parse HEAD)
2227

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

0 commit comments

Comments
 (0)