Skip to content

Commit

Permalink
Reuse workflow for dependabot merge pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
josephrodriguez committed Nov 17, 2024
1 parent f467983 commit 135f3da
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/gradle-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 135f3da

Please sign in to comment.