File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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
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 : |
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'
You can’t perform that action at this time.
0 commit comments