From 135f3daa7a031ed4b77f6a65b87463b030e82947 Mon Sep 17 00:00:00 2001 From: Jose Rodriguez <4713082+josephrodriguez@users.noreply.github.com> Date: Sun, 17 Nov 2024 13:59:35 +0200 Subject: [PATCH] Reuse workflow for dependabot merge pull request --- .github/workflows/gradle-build.yaml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/gradle-build.yaml b/.github/workflows/gradle-build.yaml index be8b41a..1b52b61 100644 --- a/.github/workflows/gradle-build.yaml +++ b/.github/workflows/gradle-build.yaml @@ -22,18 +22,6 @@ jobs: dependabot: needs: [gradle] - permissions: write-all - runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}} - steps: - - name: Dependabot metadata - id: metadata - uses: dependabot/fetch-metadata@v2.2.0 - with: - github-token: '${{ secrets.GITHUB_TOKEN }}' - - - name: Enable auto-merge for Dependabot PRs - run: gh pr merge --auto --merge "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + uses: josephrodriguez/github-workflow/.github/workflows/dependabot-merge-pull-request.yaml@main + secrets: + AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}