Fix PR workflow

This commit is contained in:
William Brawner 2024-03-27 17:01:25 -06:00
parent 9a01fb39ec
commit 5e8337da29
Signed by: wbrawner
GPG key ID: 8FF12381C6C90D35

View file

@ -1,16 +1,19 @@
name: Enable Auto Merge name: Enable Auto Merge
on: pull_request on:
pull_request_target:
permissions: types:
contents: write - opened
pull-requests: write - reopened
- edited
branches:
- main
jobs: jobs:
auto-merge: auto-merge:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.actor == 'wbrawner' || github.actor == 'dependabot[bot]' }} if: ${{ github.actor == 'wbrawner' || github.actor == 'dependabot[bot]' }}
steps: steps:
- name: Enable auto-merge for Dependabot PRs - name: Enable auto-merge
run: gh pr merge --auto --rebase "$PR_URL" run: gh pr merge --auto --rebase "$PR_URL"
env: env:
PR_URL: ${{github.event.pull_request.html_url}} PR_URL: ${{github.event.pull_request.html_url}}