fix: add fail option to curl command
This commit is contained in:
parent
da13c7b490
commit
711a42a2dc
1 changed files with 3 additions and 3 deletions
|
|
@ -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}}'
|
||||
Loading…
Reference in a new issue