From 58add0d428e47112aae402ae13057357573f178d Mon Sep 17 00:00:00 2001 From: Robert Coltheart <13191652+robertcoltheart@users.noreply.github.com> Date: Fri, 13 Oct 2023 20:50:07 +1100 Subject: [PATCH] Update merge.yml --- .github/workflows/merge.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 3541273..e06415a 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -6,13 +6,22 @@ permissions: pull-requests: write jobs: - dependabot: + merge: runs-on: ubuntu-latest - needs: [build] if: ${{ github.actor == 'dependabot[bot]' }} steps: + - name: Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@v1 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" - name: Enable auto-merge for Dependabot PRs - run: gh pr merge --auto --merge "$PR_URL" + run: gh pr merge --auto --squash "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Approve a PR + run: gh pr review --approve "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}} GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}