Skip to content

Commit 3f54ccf

Browse files
committed
Update git config in workflow for commits
Replaces hardcoded user.name and user.email in the GitHub Actions workflow with dynamic values based on GITHUB_ACTOR. This ensures commits are attributed to the correct GitHub user running the workflow.
1 parent d25b55c commit 3f54ccf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/update_export_fig.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
2525
- name: Commit and push changes
2626
run: |
27-
git config markmikkelsen "GitHub Actions"
28-
git config [email protected] "actions@github.com"
27+
git config --global user.name "${GITHUB_ACTOR}"
28+
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
2929
git add .
3030
git diff-index --quiet HEAD || git commit -m "Sync from export_fig repo"
3131
git push

0 commit comments

Comments
 (0)