From 85e67eddeb622ad5eda2f2a80ddb5da38bf05333 Mon Sep 17 00:00:00 2001 From: Christian van der Loo Date: Sun, 24 Mar 2024 17:07:26 -0400 Subject: [PATCH] ci: autoapproval process --- .github/workflows/autoapprove.yml | 12 ------------ .github/workflows/release.yml | 6 +++++- 2 files changed, 5 insertions(+), 13 deletions(-) delete mode 100644 .github/workflows/autoapprove.yml diff --git a/.github/workflows/autoapprove.yml b/.github/workflows/autoapprove.yml deleted file mode 100644 index 10f20bc..0000000 --- a/.github/workflows/autoapprove.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Auto Approve Releases - -on: pull_request_target - -jobs: - auto-approve: - runs-on: ubuntu-latest - permissions: - pull-requests: write${{ }} - if: github.actor == 'github-actions' && contains(github.event.pull_request.title, "release pkl-biome") - steps: - - uses: hmarr/auto-approve-action@v4 \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a6e386c..bb43186 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,4 +30,8 @@ jobs: run: | TAG=${{ steps.release.outputs.tag_name }} gh release upload ${{ steps.release.outputs.tag_name }} .out/$TAG/* - gh release edit ${{ steps.release.outputs.tag_name }} -t ${{ steps.release.outputs.tag_name }} \ No newline at end of file + gh release edit ${{ steps.release.outputs.tag_name }} -t ${{ steps.release.outputs.tag_name }} + - name: Approve PR + uses: hmarr/auto-approve-action@v4 + with: + pull-request-number: ${{ release.outputs.pr.number }}