diff --git a/.github/workflows/post-release.yml b/.github/workflows/post-release.yml index 9bf1e60bb19..7c38b2d978a 100644 --- a/.github/workflows/post-release.yml +++ b/.github/workflows/post-release.yml @@ -124,23 +124,22 @@ jobs: > The `post_release` workflow waits for a webhook and then updates the citation files. If the file is not modified by this pull request, please check the latest release on [Zenodo's website](https://zenodo.org/record/592480), close this pull request, and [manually run the workflow](https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow). > > This pull request should be auto-merged. - labels: build-docs - reviewers: wkerzendorf, andrewfullard, epassaro + labels: automated, build-docs + team-reviewers: tardis-sn/tardis-infrastructure id: create-pr - name: Wait for pull request run: sleep 30 - name: Approve pull request - uses: juliangruber/approve-pull-request-action@v1 - with: - github-token: ${{ secrets.PR_APPROVAL_TOKEN }} - number: ${{ steps.create-pr.outputs.pull-request-number }} + run: gh pr review ${{ steps.create-pr.outputs.pull-request-number }} --approve + env: + GITHUB_TOKEN: ${{ secrets.INFRASTRUCTURE_COORDINATOR_TOKEN }} if: steps.create-pr.outputs.pull-request-operation == 'created' - name: Enable automerge uses: peter-evans/enable-pull-request-automerge@v2 with: - token: ${{ secrets.BOT_TOKEN }} + token: ${{ secrets.INFRASTRUCTURE_COORDINATOR_TOKEN }} pull-request-number: ${{ steps.create-pr.outputs.pull-request-number }} merge-method: squash diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index ad29eada265..110c1f2b787 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -134,23 +134,22 @@ jobs: > ``` > > Once all the checks pass, you can safely merge this pull request manually. - labels: build-docs - reviewers: wkerzendorf, andrewfullard, epassaro + labels: automated, build-docs + reviewers: tardis-sn/tardis-infrastructure id: create-pr - name: Wait for pull request run: sleep 30 - name: Approve pull request - uses: juliangruber/approve-pull-request-action@v2 - with: - github-token: ${{ secrets.PR_APPROVAL_TOKEN }} - number: ${{ steps.create-pr.outputs.pull-request-number }} + run: gh pr review ${{ steps.create-pr.outputs.pull-request-number }} --approve + env: + GITHUB_TOKEN: ${{ secrets.INFRASTRUCTURE_COORDINATOR_TOKEN }} if: steps.create-pr.outputs.pull-request-operation == 'created' - name: Enable automerge uses: peter-evans/enable-pull-request-automerge@v2 with: - token: ${{ secrets.BOT_TOKEN }} + token: ${{ secrets.INFRASTRUCTURE_COORDINATOR_TOKEN }} pull-request-number: ${{ steps.create-pr.outputs.pull-request-number }} merge-method: squash