From 56f82d0c6e89d85e6d75514d54b6d23166209a58 Mon Sep 17 00:00:00 2001 From: Mark Date: Sat, 13 Jan 2024 16:03:06 -0500 Subject: [PATCH] ci(github): fix workflow assign-reviewer.yml --- .github/workflows/assign-reviewer.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/assign-reviewer.yml b/.github/workflows/assign-reviewer.yml index 9f2c719d..bc2cdbf2 100644 --- a/.github/workflows/assign-reviewer.yml +++ b/.github/workflows/assign-reviewer.yml @@ -4,11 +4,15 @@ on: pull_request_target jobs: assign-reviewer: runs-on: ubuntu-latest + steps: - - name: Assign reviewer - if: > - startsWith(github.event.pull_request.title, 'build(deps-dev): bump ') == false && - contains(github.event.action, 'opened') - run: gh pr edit ${{ github.event.number }} --add-assignee ${{ github.event.pull_request.user.login }} --add-reviewer remarkablemark - env: - GITHUB_TOKEN: ${{ github.token }} + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Assign reviewer + if: > + startsWith(github.event.pull_request.title, 'build(deps-dev): bump ') == false && + contains(github.event.action, 'opened') + run: gh pr edit ${{ github.event.number }} --add-assignee ${{ github.event.pull_request.user.login }} --add-reviewer remarkablemark + env: + GITHUB_TOKEN: ${{ github.token }}