From 3df6dcfbe7b1b499dbd6ddf536ae509286afe21b Mon Sep 17 00:00:00 2001 From: Manuel <30572287+manuel-rw@users.noreply.github.com> Date: Sat, 13 Jul 2024 14:19:21 +0200 Subject: [PATCH] feat: approve before automerge --- .github/workflows/deployment-weekly-release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/deployment-weekly-release.yml b/.github/workflows/deployment-weekly-release.yml index 48ea96713..db546dbd2 100644 --- a/.github/workflows/deployment-weekly-release.yml +++ b/.github/workflows/deployment-weekly-release.yml @@ -8,6 +8,7 @@ on: send-notifications: type: boolean required: false + default: true description: Send notifications permissions: @@ -46,6 +47,17 @@ jobs: uses: Ilshidur/action-discord@master with: args: "Created a release PR ${{ steps.create-pull-request.outputs.url }} for version ${{ steps.semver.outputs.next }} (new behaviour: ${{ steps.semver.outputs.bump }})" + - name: Obtain token + id: obtainApprovalToken + uses: tibdex/github-app-token@v2 + with: + private_key: ${{ secrets.RENOVATE_APPROVE_PRIVATE_KEY }} + app_id: ${{ secrets.RENOVATE_APPROVE_APP_ID }} + - name: Approve PR + env: + GITHUB_TOKEN: ${{ steps.obtainApprovalToken.outputs.token }} + run: | + gh pr review --approve --body "Automatically approved by GitHub Action" - id: automerge if: ${{ steps.semver.outputs.bump != 'major' }} name: automerge