mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-28 11:21:38 -05:00
Merge pull request #1596 from GSA/dependabot_fix
use hmarr autoapprove action
This commit is contained in:
8
.github/workflows/dependabot-auto-merge.yml
vendored
8
.github/workflows/dependabot-auto-merge.yml
vendored
@@ -22,11 +22,15 @@ jobs:
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# use admin to bypass the need for approval, human PRs still need two approvals
|
||||
- name: Auto-approve dependabot PR
|
||||
uses: hmarr/auto-approve-action@v4
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Enable auto-merge for minor updates
|
||||
if: steps.metadata.outputs.update-type == 'version-update:semver-minor'
|
||||
run: |
|
||||
gh pr merge --squash --admin "$PR_URL"
|
||||
gh pr merge --auto --squash "$PR_URL"
|
||||
env:
|
||||
PR_URL: ${{ github.event.pull_request.html_url }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user