From 3f3f9c6dc3e76fdfdead0f8891c4908d2c1bc8db Mon Sep 17 00:00:00 2001 From: Patrick Joyce Date: Mon, 13 May 2024 19:25:08 -0400 Subject: [PATCH] auto approve passing renovate --- .github/workflows/main.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 5dc2919..3580499 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -26,3 +26,15 @@ jobs: - name: lint run: | npm run lint + + - name: Approve PR + if: github.actor == 'renovate[bot]' + run: gh pr review ${{ github.event.pull_request.number }} --approve + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Merge PR + if: github.actor == 'renovate[bot]' + run: gh pr merge ${{ github.event.pull_request.number }} --merge + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}