diff --git a/.github/workflows/imgbot.yml b/.github/workflows/imgbot.yml index 4ae09b7e0226..baed42c635e5 100644 --- a/.github/workflows/imgbot.yml +++ b/.github/workflows/imgbot.yml @@ -6,7 +6,7 @@ permissions: pull-requests: write jobs: - merge: + approveAndMerge: runs-on: ubuntu-latest if: ${{ github.actor == 'imgbot[bot]' }} steps: @@ -15,3 +15,8 @@ jobs: env: PR_URL: ${{github.event.pull_request.html_url}} GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Merge imgbot PR + run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}