Skip to content

Commit

Permalink
Switch from Dependabot auto-merge action to gh command
Browse files Browse the repository at this point in the history
Enabling GitHub merge queues broke the current Dependabot auto-merge
integration. To fix this, switch to the example pipeline code shown in
the official Dependabot documentation.
  • Loading branch information
bertschneider committed Feb 15, 2023
1 parent a54ce8f commit 845b194
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/run-all-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,18 @@ jobs:
pull-requests: write
contents: write
runs-on: ubuntu-20.04
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- uses: fastify/github-action-merge-dependabot@v3.0.0
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.1.1
with:
target: minor
merge-method: rebase
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
if:
${{steps.metadata.outputs.update-type ==
'version-update:semver-patch'}}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 845b194

Please sign in to comment.