Bump actions/setup-python from 5.2.0 to 5.3.0 #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Auto-Merge Dependabot PRs" | |
on: | |
pull_request: | |
branches: | |
- "main" | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
automerge: | |
name: "Auto-approve PR" | |
runs-on: ubuntu-latest | |
if: github.actor == 'dependabot[bot]' || github.actor == 'ylabonte' | |
steps: | |
- name: "Approve PR to enable auto-merge" | |
run: gh pr review --approve "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: "Auto-merge PR" | |
run: gh pr merge --merge --auto "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GH_TOKEN: ${{secrets.GITHUB_TOKEN}} |