Skip to content

Commit 4ccef40

Browse files
committed
set github-actions git credentials
1 parent 951eb1b commit 4ccef40

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/deploy-gh-pages.sh

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

21+
git config user.name
22+
git config user.email
23+
git config --global user.name
24+
git config --global user.email
25+
26+
if ! git config user.email; then
27+
git config user.name 'github-actions'
28+
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
29+
fi
30+
2131
head=$(git rev-parse HEAD)
2232

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

0 commit comments

Comments
 (0)