@@ -19,6 +19,14 @@ inputs:
1919 github-token :
2020 description : " The GitHub token"
2121 required : true
22+ git-username :
23+ description : " The git username for commits"
24+ required : false
25+ default : " github-actions[bot]"
26+ git-email :
27+ description : " The git email for commits"
28+ required : false
29+ default : " 41898282+github-actions[bot]@users.noreply.github.com"
2230 pypi-username :
2331 description : " The PyPi token"
2432 required : false
7886 GITHUB_TOKEN : ${{ inputs.github-token }}
7987 BRANCH : ${{ inputs.ref }}
8088 run : |
81- git config user.name "github-actions[bot] "
82- git config user.email "41898282+github-actions[bot]@users.noreply.github.com "
89+ git config user.name "${{ inputs.git-username }} "
90+ git config user.email "${{ inputs.git-email }} "
8391 DATE=$(date +'%Y-%m-%d')
8492 sed -i "/These changes are available on the \`.*\` branch, but have not yet been released\./{N;d;}" CHANGELOG.md
8593 sed -i "s/## \[Unreleased\]/## [$VERSION] - $DATE/" CHANGELOG.md
96104 GITHUB_TOKEN : ${{ inputs.github-token }}
97105 BRANCH : ${{ inputs.ref }}
98106 run : |
99- git config user.name "github-actions[bot] "
100- git config user.email "41898282+github-actions[bot]@users.noreply.github.com "
107+ git config user.name "${{ inputs.git-username }} "
108+ git config user.email "${{ inputs.git-email }} "
101109 git push origin HEAD:$BRANCH
102110
103111 - name : " Push Changelog to Version Branch"
@@ -107,8 +115,8 @@ runs:
107115 GITHUB_TOKEN : ${{ inputs.github-token }}
108116 VERSION_BRANCH : ${{ inputs.version-branch-name }}
109117 run : |
110- git config user.name "github-actions[bot] "
111- git config user.email "41898282+github-actions[bot]@users.noreply.github.com "
118+ git config user.name "${{ inputs.git-username }} "
119+ git config user.email "${{ inputs.git-email }} "
112120 git push origin HEAD:$VERSION_BRANCH
113121
114122 - name : " Create Git Tag"
@@ -118,8 +126,8 @@ runs:
118126 VERSION : ${{ inputs.version }}
119127 GITHUB_TOKEN : ${{ inputs.github-token }}
120128 run : |
121- git config user.name "github-actions[bot] "
122- git config user.email "41898282+github-actions[bot]@users.noreply.github.com "
129+ git config user.name "${{ inputs.git-username }} "
130+ git config user.email "${{ inputs.git-email }} "
123131 git tag v$VERSION -m "Release version $VERSION"
124132
125133 - name : " Verify Version"
0 commit comments