Skip to content

Commit

Permalink
Approve and merge all but major version updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bertschneider committed Feb 20, 2023
1 parent ea58a49 commit 9a3347a
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/run-all-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,18 @@ jobs:
uses: dependabot/fetch-metadata@v1.1.1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
- name: Approve
if:
${{steps.metadata.outputs.update-type ==
'version-update:semver-patch'}}
${{steps.metadata.outputs.update-type !=
'version-update:semver-major'}}
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
if:
${{steps.metadata.outputs.update-type !=
'version-update:semver-major'}}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
Expand Down

0 comments on commit 9a3347a

Please sign in to comment.