Skip to content

Commit

Permalink
Re-use name and e-mail of commit that triggered auto-release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Dec 17, 2023
1 parent ce20498 commit ccbd3cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ jobs:
- name: "Checkout"
uses: "actions/checkout@v3"

- name: "Re-use name and e-mail of commit that triggered this workflow"
run: |
git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)"
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
- name: "Set up Python"
uses: "actions/setup-python@v5"
with:
Expand Down

0 comments on commit ccbd3cb

Please sign in to comment.