Fail the auto approve workflow if the GitHub API call fails

This commit is contained in:
Dominion
2023-04-29 14:08:50 -04:00
parent b593cb05ee
commit 163a40f4be
@@ -22,4 +22,5 @@ jobs:
--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"}'
-d '{"event":"APPROVE"}' \
--fail