Skip to content

Commit 026549d

Browse files
committed
Add reviewer input to bump-gitstream-core workflow
1 parent cac55c9 commit 026549d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ on:
2121
required: false
2222
type: boolean
2323
default: true
24+
reviewer:
25+
description: GitHub username to assign as reviewer
26+
required: false
2427

2528
jobs:
2629
publish_pr:
@@ -39,6 +42,12 @@ jobs:
3942
if: inputs.auto-deploy
4043
run: |
4144
echo "LABEL_ARG=--label auto-deploy" >> "$GITHUB_ENV"
45+
echo "REVIEWER_ARG=" >> "$GITHUB_ENV"
46+
47+
- name: Set reviewer
48+
if: inputs.reviewer
49+
run: |
50+
echo "REVIEWER_ARG=--reviewer ${{ inputs.reviewer }}" >> "$GITHUB_ENV"
4251
4352
- name: Init npmrc
4453
run: |
@@ -64,5 +73,4 @@ jobs:
6473
--base develop \
6574
--title "Bump \`@linearb/gitstream-core\` to \`${{ env.VERSION }}\`" \
6675
--body-file pr_description.txt \
67-
--head ${{ env.BRANCH_NAME }} \
68-
--reviewer ${{ github.actor }} ${{ env.LABEL_ARG }}
76+
--head ${{ env.BRANCH_NAME }} ${{ env.REVIEWER_ARG }} ${{ env.LABEL_ARG }}

0 commit comments

Comments
 (0)