File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 9
9
required : true
10
10
type : " string"
11
11
12
- env :
13
- GIT_AUTHOR_EMAIL : " 167856002+mongodb-dbx-release-bot[bot]@users.noreply.github.com"
14
- GIT_AUTHOR_NAME : " mongodb-dbx-release-bot[bot]"
15
-
16
12
jobs :
17
13
prepare-release :
18
14
environment : release
@@ -72,10 +68,13 @@ jobs:
72
68
echo '🆕 Creating new release branch ${RELEASE_BRANCH} from ${{ github.ref_name }}' >> $GITHUB_STEP_SUMMARY
73
69
git checkout -b ${RELEASE_BRANCH}
74
70
71
+ # Set commit author information to the user that triggered the release workflow
75
72
- name : " Set git author information"
76
73
run : |
77
- git config user.name "${GIT_AUTHOR_NAME}"
78
- git config user.email "${GIT_AUTHOR_EMAIL}"
74
+ GITHUB_USER_NAME=$(gh api users/${{ github.actor }} --jq '.name')
75
+ GITHUB_USER_ID=$(gh api users/${{ github.actor }} --jq '.id')
76
+ git config user.name "${GITHUB_USER_NAME}}"
77
+ git config user.email "${GITHUB_USER_ID}+${{ github.actor }}@users.noreply.github.com"
79
78
80
79
# This step bumps version numbers in build.gradle and creates git artifacts for the release
81
80
- name : " Bump version numbers and create release tag"
You can’t perform that action at this time.
0 commit comments