Skip to content

Commit b29f80c

Browse files
d-e-s-odanielocfb
authored andcommitted
Properly fail publish CI workflow on error
Make sure to use the --fail-with-body option in our special-sauce curl invocation inside the publish CI workflow, to ensure that errors are bubbled up properly. Signed-off-by: Daniel Müller <[email protected]>
1 parent 3a645d7 commit b29f80c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/publish.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ jobs:
4141
version: ${{ needs.version.outputs.version }}
4242
run: |
4343
curl --location \
44+
--fail-with-body \
4445
--request POST \
4546
--url https://api.github.com/repos/${{ github.repository }}/releases \
4647
--header "Accept: application/vnd.github+json" \
47-
--header "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"\
48+
--header "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
4849
--header "X-GitHub-Api-Version: 2022-11-28" \
4950
--data "{
5051
\"tag_name\":\"v${version}\",

0 commit comments

Comments
 (0)