Skip to content

Commit

Permalink
setup imgbot approval
Browse files Browse the repository at this point in the history
  • Loading branch information
justinpersaud committed Oct 24, 2023
1 parent 29a9154 commit 305cf3c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/imgbot.yml
Original file line number Diff line number Diff line change
@@ -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}}

0 comments on commit 305cf3c

Please sign in to comment.