From 163a40f4bec504a7cf8e541e7a9fb2c792522123 Mon Sep 17 00:00:00 2001 From: Dominion Date: Sat, 29 Apr 2023 14:08:50 -0400 Subject: [PATCH] Fail the auto approve workflow if the GitHub API call fails --- .github/workflows/auto-approve-dominions-prs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-approve-dominions-prs.yml b/.github/workflows/auto-approve-dominions-prs.yml index d481b114e3..d2dd311018 100644 --- a/.github/workflows/auto-approve-dominions-prs.yml +++ b/.github/workflows/auto-approve-dominions-prs.yml @@ -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