Skip to content

Commit a64d2ec

Browse files
committed
chore(preview_build): "Author: github-actions[bot]" で gh-pages にコミット
既定では peaceiris/actions-gh-pages は Action のトリガーになったユーザー を用いてコミットを作成して gh-pages に push する。しかしこれだと PR の 中で試行錯誤をした分だけユーザーの GitHub Contributions のカウントが増 えてしまって不本意なことになる。ユーザー "github-actions[bot]" で gh-pages にコミットするべし。
1 parent f8a10e3 commit a64d2ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ jobs:
123123
with:
124124
github_token: ${{ secrets.GITHUB_TOKEN }}
125125
publish_dir: ./site_generator/cpprefjp/gh-pages
126+
user_name: 'github-actions[bot]'
127+
user_email: '41898282+github-actions[bot]@users.noreply.github.com'
126128

127129
# Note: 以下のコミットメッセージは .github/workflows/preview_clear.yml
128130
# で削除対象のコミットの特定に用いるので、変更する場合は preview_clear

0 commit comments

Comments
 (0)