Skip to content

Commit 3dc94c0

Browse files
committed
fix: update branch name format and improve reviewer assignment in bump workflow
1 parent 74da05d commit 3dc94c0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/bump-gitstream-core.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ jobs:
3131
runs-on: ubuntu-latest
3232
steps:
3333
- uses: actions/checkout@v6
34+
with:
35+
token: ${{ secrets.CI_USER_GIT_TOKEN }}
3436

3537
- name: Set version to ENV
3638
run: |
3739
echo "VERSION=${{ inputs.version }}" >> "$GITHUB_ENV"
38-
echo "BRANCH_NAME=${{ inputs.ticket }}-bump-gitstream-core-to-${{ inputs.version }}" >> "$GITHUB_ENV"
40+
echo "BRANCH_NAME=bump-gitstream-core-to-${{ inputs.version }}" >> "$GITHUB_ENV"
3941
echo "LABEL_ARG=" >> "$GITHUB_ENV"
4042
echo "REVIEWER_ARG=" >> "$GITHUB_ENV"
4143
@@ -45,9 +47,9 @@ jobs:
4547
echo "LABEL_ARG=--label auto-deploy" >> "$GITHUB_ENV"
4648
4749
- name: Set reviewer
48-
if: inputs.reviewer
4950
run: |
50-
echo "REVIEWER_ARG=--reviewer ${{ inputs.reviewer }}" >> "$GITHUB_ENV"
51+
REVIEWER="${{ inputs.reviewer || github.actor }}"
52+
echo "REVIEWER_ARG=--reviewer $REVIEWER" >> "$GITHUB_ENV"
5153
5254
- name: Init npmrc
5355
run: |
@@ -62,7 +64,7 @@ jobs:
6264
- name: Create PR for ${{ env.VERSION }}
6365
id: create-pr
6466
env:
65-
GH_TOKEN: ${{ github.token }}
67+
GH_TOKEN: ${{ secrets.CI_USER_GIT_TOKEN }}
6668
run: |
6769
echo -e "${{ inputs.description }}" > pr_description.txt
6870
git config --global user.name 'GitHub Actions Bot'

0 commit comments

Comments
 (0)