Skip to content

Workflow file for this run

# yamllint disable rule:line-length
# yamllint disable rule:braces
name: PR Approval
on:
pull_request:
env:

Check failure on line 8 in .github/workflows/autoapprove.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/autoapprove.yaml

Invalid workflow file

You have an error in your yaml syntax on line 8
LINES: 'Cool' 'Nice'
jobs:
approve_pr:
name: Automatic Approval
runs-on: ubuntu-latest
if: github.actor == github.repository_owner
steps:
- name: Approve PR
env:
GH_TOKEN: ${{ github.token }}
run: |
shuf -n 1 -e "${{ env.LINES }}"
shuf -n 1 -e "${LINES[@]}"
shuf -n 1 -e "${LINES[@]}" |
gh pr review ${{ github.event.pull_request.html_url }} --approve --body -