Skip to content

Commit cfabc48

Browse files
committed
use github-actions[bot] in CI
1 parent 7fb64d3 commit cfabc48

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/deploy.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
SHA_SHORT=$(git rev-parse --short HEAD)
3232
MESSAGE="Deployed ${SHA_SHORT} with MkDocs version ${MKDOCS_VERSION} (${MATERIAL_VERSION})"
3333
echo "MESSAGE=${MESSAGE}" >> $GITHUB_ENV
34+
- name: Example step where the github-actions bot makes a git commit
35+
run: |
36+
git config --global user.name github-actions[bot]
37+
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
3438
- name: Deploy
3539
uses: cpina/github-action-push-to-another-repository@main
3640
env:
@@ -39,5 +43,7 @@ jobs:
3943
source-directory: site/
4044
destination-github-username: "golang-jwt"
4145
destination-repository-name: "jwt"
46+
user-name: "github-actions[bot]"
47+
user-email: "41898282+github-actions[bot]@users.noreply.github.com"
4248
commit-message: ${{ env.MESSAGE }}
4349
target-branch: gh-pages

0 commit comments

Comments
 (0)