Skip to content

Commit 0538642

Browse files
committed
feat(action): add default git config
1 parent d9dea55 commit 0538642

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

action.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ inputs:
1111
required: false
1212
python-version:
1313
description: "Version range or exact version of Python or PyPy to use, using SemVer's version range syntax. Reads from .python-version if unset. Passed directly to setup-python"
14+
required: false
15+
set-git-config:
16+
description: "Set git config"
17+
required: false
18+
default: "true"
1419

1520
branding:
1621
icon: "anchor"
@@ -19,6 +24,11 @@ branding:
1924
runs:
2025
using: "composite"
2126
steps:
27+
- if: ${{ inputs.set-git-config == 'true' }}
28+
shell: bash
29+
run: |
30+
git config --global user.name "github-actions[bot]"
31+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
2232
- id: set-vars
2333
uses: actions/github-script@v8
2434
env:

0 commit comments

Comments
 (0)