Skip to content

Commit c717883

Browse files
authored
Add --fail to exit with non-zero return code when curl fails to create a PR. (#3187)
1 parent eea5817 commit c717883

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/actions/reference/authentication-in-a-workflow.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ You can use the `GITHUB_TOKEN` to make authenticated API calls. This example wor
7171
--data '{
7272
"title": "Automated issue for commit: ${{ github.sha }}",
7373
"body": "This issue was automatically created by the GitHub Action workflow **${{ github.workflow }}**. \n\n The commit hash was: _${{ github.sha }}_."
74-
}'
74+
}' \
75+
--fail
7576
```
7677
{% endraw %}
7778

0 commit comments

Comments
 (0)