Skip to content

Commit d3df97a

Browse files
committed
feat: allow git user and email configuration
1 parent 35ba1f5 commit d3df97a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

action.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ inputs:
1919
description: "Set git config"
2020
required: false
2121
default: "true"
22+
git-user-name:
23+
description: "Git user name"
24+
required: false
25+
default: "github-actions[bot]"
26+
git-user-email:
27+
description: "Git user email"
28+
required: false
29+
default: "41898282+github-actions[bot]@users.noreply.github.com"
2230

2331
branding:
2432
icon: "anchor"
@@ -30,8 +38,8 @@ runs:
3038
- if: ${{ inputs.set-git-config == 'true' }}
3139
shell: bash
3240
run: |
33-
git config --global user.name "github-actions[bot]"
34-
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
41+
git config --global user.name "${{ inputs.git-user-name }}"
42+
git config --global user.email "${{ inputs.git-user-email }}"
3543
- id: set-vars
3644
uses: actions/github-script@v8
3745
env:

0 commit comments

Comments
 (0)