* 'master' of https://github.com/StuffAnThings/qbit_manage:
  Update dependabot-approve-and-auto-merge.yml
This commit is contained in:
bobokun 2023-03-06 15:24:52 -05:00
commit 6fb3bf54b1
No known key found for this signature in database
GPG key ID: B73932169607D927

View file

@ -1,10 +1,12 @@
name: Dependabot Pull Request Approve and Merge
on: pull_request_target
on: pull_request
permissions:
pull-requests: write
issues: write
contents: write
repository-projects: write
jobs:
dependabot:
@ -30,7 +32,7 @@ jobs:
# updates if all checks pass
- name: Enable auto-merge for Dependabot PRs
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
run: gh pr merge --auto --squash "$PR_URL"
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}