Skip to content

Commit

Permalink
Merge pull request #346 from db-ui/refactor-updated-auto-merge-capabi…
Browse files Browse the repository at this point in the history
…lity

refactor: updated auto-merge capability
  • Loading branch information
mfranzke authored Nov 29, 2024
2 parents ef4fe41 + 7bf7b49 commit b3c6948
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/99-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,18 @@ jobs:
steps:
- name: ⏬ Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2.2.0
uses: dependabot/fetch-metadata@v2
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
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}}

- name: 🤖 Enable auto-merge for Dependabot PRs
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
Expand Down

0 comments on commit b3c6948

Please sign in to comment.