diff --git a/.github/workflows/ios-assign-reviewers.yml b/.github/workflows/ios-assign-reviewers.yml index 3e5708617..e20744325 100644 --- a/.github/workflows/ios-assign-reviewers.yml +++ b/.github/workflows/ios-assign-reviewers.yml @@ -33,6 +33,7 @@ jobs: uses: actions/github-script@v7 env: IOS_REVIEWERS: ${{ vars.IOS_REVIEWERS }} + PULL_NUMBER: ${{ steps.pr_number.outputs.number }} with: script: | const { IOS_REVIEWERS } = process.env @@ -42,6 +43,6 @@ jobs: await github.rest.pulls.requestReviewers({ owner: context.repo.owner, repo: context.repo.repo, - pull_number: context.payload.pull_request.number, + pull_number: PULL_NUMBER, reviewers });