Skip to content

Workflow file for this run

name: APPROVE
on: pull_request # run on pull request events
permissions:
pull-requests: write # grant write permission on the pull-requests endpoint
jobs:
approve:
runs-on: ubuntu-latest
steps:
- run: | # approve the pull request
curl --request POST \
--url https://api.github.com/repos/${{github.repository}}/pulls/${{github.event.number}}/reviews \
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
--header 'content-type: application/json' \
-d '{"event":"APPROVE"}'
- name: test1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{secrets.GITHUB_TOKEN}}" -H "Content-Type: application/json" https://api.github.com/user

Check failure on line 21 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

You have an error in your yaml syntax on line 21