From 305cf3c97bebde8e347e5a534e9908556eee11e5 Mon Sep 17 00:00:00 2001 From: Justin Persaud Date: Tue, 24 Oct 2023 11:22:08 -0400 Subject: [PATCH] setup imgbot approval --- .github/workflows/imgbot.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/imgbot.yml diff --git a/.github/workflows/imgbot.yml b/.github/workflows/imgbot.yml new file mode 100644 index 000000000000..4ae09b7e0226 --- /dev/null +++ b/.github/workflows/imgbot.yml @@ -0,0 +1,17 @@ +name: imgbot Image Optimization + +on: pull_request + +permissions: + pull-requests: write + +jobs: + merge: + runs-on: ubuntu-latest + if: ${{ github.actor == 'imgbot[bot]' }} + steps: + - name: Approve imgbot PR + run: gh pr review --approve "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}