From 5f2762ffc0fa1722c29a5744a3050ac95cd7b851 Mon Sep 17 00:00:00 2001 From: Justin Persaud Date: Tue, 24 Oct 2023 11:55:05 -0400 Subject: [PATCH] Add step to merge --- .github/workflows/imgbot.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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}}