Skip to content

Commit 18854ad

Browse files
committed
Keep git identity in its own workflow step
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018wW4exS2jysxmRMnxUtzx1
1 parent 3e489b0 commit 18854ad

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/build.yaml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
fetch-depth: 0
2020
# only the deploy step gets the token, see there
2121
persist-credentials: false
22+
- name: Configure Git Credentials
23+
run: |
24+
git config user.name "${GITHUB_ACTOR}"
25+
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
2226
- name: Install Python and dependencies
2327
uses: actions/setup-python@v7
2428
with:
@@ -41,8 +45,6 @@ jobs:
4145
- name: Deploy to GitHub Pages
4246
if: github.ref == 'refs/heads/main'
4347
run: |
44-
git config user.name "${GITHUB_ACTOR}"
45-
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
4648
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
4749
mkdocs gh-deploy --force
4850
env:

0 commit comments

Comments
 (0)