Skip to content

Commit

Permalink
ci: make curl fail on unsuccessful call to slack API
Browse files Browse the repository at this point in the history
Closes #4417
  • Loading branch information
barmac authored Jul 3, 2024
1 parent 5d00a71 commit 41692e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/RELEASE_ISSUE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 41692e6

Please sign in to comment.