chore: fix release fails due to auth step not running #10
Workflow file for this run
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
# Approve PRs with "auto-approve". | |
name: auto-approve | |
on: | |
pull_request: | |
types: | |
- labeled # Run when labels are updated | |
- opened # Run when a PR is initially submitted | |
- ready_for_review # Run when a Draft PR is upgraded PR | |
- reopened # Run when a PR is re-opened | |
- synchronize # Run when a PR head branch is updated | |
jobs: | |
auto-approve: | |
if: | | |
contains(github.event.pull_request.labels.*.name, 'auto-approve') || | |
github.event.label.name == 'auto-approve' | |
permissions: | |
actions: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- run: gh pr review --approve ${{ github.event.pull_request.number }} -R ${{ github.repository }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |