From 711a42a2dc319976075456c7f74bcd6ad0396228 Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Mon, 29 Dec 2025 14:37:52 +0100 Subject: [PATCH] fix: add fail option to curl command --- .forgejo/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 5de3e41..2a4ce36 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -18,7 +18,7 @@ jobs: - name: ⚙️ Set up Go uses: actions/setup-go@v5 with: - go-version: 1.24 + go-version: 1.25 - name: ⚙️ Install dependencies run: | @@ -34,7 +34,7 @@ jobs: echo "Creating release for ${{ env.GITHUB_REPOSITORY}} with tag ${{ env.GITHUB_REF_NAME }}" - REQUEST=$(curl --request POST \ + REQUEST=$(curl --fail --request POST \ --url ${{ env.GITHUB_API_URL }}/repos/${{ env.GITHUB_REPOSITORY }}/releases \ --header 'Authorization: token ${{ secrets.GIT_TOKEN }}' \ --header 'content-type: application/json' \ @@ -46,7 +46,7 @@ jobs: echo "Uploading release asset for Release ID ${RELEASE_ID}" - curl --request POST \ + curl --fail --request POST \ --url ${{ env.GITHUB_API_URL }}/repos/${{ env.GITHUB_REPOSITORY }}/releases/${RELEASE_ID}/assets?name=${{ env.build_name }} \ --header 'Authorization: token ${{ secrets.GIT_TOKEN }}' \ -F 'attachment=@${{ env.build_name}}' \ No newline at end of file