Skip to content

Commit 39f5996

Browse files
authored
Use proper email for the Git user in GHA (#781)
* Use proper email for the Git user in GHA * Use an action to set the GHA user in Git
1 parent ab5c155 commit 39f5996

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/test-library.yml

+2-10
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,7 @@ jobs:
265265
- name: Setup git user as [bot]
266266
if: >-
267267
fromJSON(needs.pre-setup.outputs.is-untagged-devel)
268-
run: >
269-
git config --local user.email
270-
'github-actions[bot]@users.noreply.github.com'
271-
272-
git config --local user.name 'github-actions[bot]'
268+
uses: fregante/[email protected]
273269
- name: >-
274270
Tag the release in the local Git repo
275271
as ${{ needs.pre-setup.outputs.git-tag }}
@@ -755,11 +751,7 @@ jobs:
755751
fetch-depth: 1
756752
ref: ${{ github.event.inputs.release-commitish }}
757753
- name: Setup git user as [bot]
758-
run: >
759-
git config --local user.email
760-
'github-actions[bot]@users.noreply.github.com'
761-
762-
git config --local user.name 'github-actions[bot]'
754+
uses: fregante/[email protected]
763755

764756
- name: >-
765757
Tag the release in the local Git repo

0 commit comments

Comments
 (0)