From 41692e661e5e64c1942aa4b67373d47dcb08dbbf Mon Sep 17 00:00:00 2001 From: Maciej Barelkowski Date: Wed, 3 Jul 2024 09:55:21 +0200 Subject: [PATCH] ci: make curl fail on unsuccessful call to slack API Closes #4417 --- .github/workflows/RELEASE_ISSUE.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/RELEASE_ISSUE.yml b/.github/workflows/RELEASE_ISSUE.yml index 1122c04fef..a32306f9e3 100644 --- a/.github/workflows/RELEASE_ISSUE.yml +++ b/.github/workflows/RELEASE_ISSUE.yml @@ -76,4 +76,4 @@ jobs: # User ID is either the assignee from the newly created issue or the new assigned from the `assigned` trigger USER_ID: ${{ fromJSON(steps.secrets.outputs.TEAM_MEMBER_IDS)[ needs.createReleaseIssue.outputs.assignee || github.event.issue.assignee.login ] }} run: | - curl -X POST -H "application/x-www-form-urlencoded" -d "token=${BOT_TOKEN}&usergroup=${GROUP_ID}&users=${USER_ID}" https://slack.com/api/usergroups.users.update + curl --fail-with-body -X POST -H "application/x-www-form-urlencoded" -d "token=${BOT_TOKEN}&usergroup=${GROUP_ID}&users=${USER_ID}" https://slack.com/api/usergroups.users.update