From 07189990aba12773d30f8afc97f459cf170a47ed Mon Sep 17 00:00:00 2001 From: Paul Welter Date: Mon, 9 Sep 2024 07:53:31 -0500 Subject: [PATCH] Create merge.yml --- .github/workflows/merge.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/merge.yml diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml new file mode 100644 index 0000000..c52640d --- /dev/null +++ b/.github/workflows/merge.yml @@ -0,0 +1,24 @@ +name: Dependabot Auto-Merge +on: pull_request + +permissions: + contents: write + pull-requests: write + +jobs: + dependabot: + runs-on: ubuntu-latest + if: github.actor == 'dependabot[bot]' + + steps: + - name: Dependabot Metadata + id: metadata + uses: dependabot/fetch-metadata@v2 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + + - name: Dependabot Auto-Merge PRs + run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GH_TOKEN: ${{secrets.GITHUB_TOKEN}}