Skip to content

Commit 8440904

Browse files
authored
Update cut_major_branch.yml (geosolutions-it#11941)
1 parent 5a7dc29 commit 8440904

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/cut_major_branch.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,17 @@ jobs:
2121
with:
2222
ref: ${{ github.event.inputs.main-branch }}
2323
token: ${{ secrets.GITHUB_TOKEN }}
24+
25+
- name: Bot Details
26+
id: bot-details
27+
uses: raven-actions/bot-details@v1
28+
2429
- name: Create release branch and generate PR body
2530
id: create-branch
2631
env:
32+
BOT_ID: ${{ steps.bot-details.outputs.id }}
33+
BOT_DISPLAY_NAME: ${{ steps.bot-details.outputs.name }}
34+
BOT_EMAIL: ${{ steps.bot-details.outputs.email }}
2735
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2836
RELEASE_BRANCH: ${{ github.event.inputs.release-branch }}
2937
MAIN_BRANCH: ${{ github.event.inputs.main-branch }}
@@ -34,8 +42,8 @@ jobs:
3442
# script will go here
3543
echo "Initializing git"
3644
# Optional
37-
git config user.name github-actions
38-
git config user.email github-actions@github.com
45+
git config user.name $BOT_DISPLAY_NAME
46+
git config user.email $BOT_EMAIL
3947
BRANCH_NAME="${RELEASE_BRANCH}"
4048
echo "creating branch is $BRANCH_NAME"
4149
git checkout -b "$BRANCH_NAME"

0 commit comments

Comments
 (0)