Skip to content

Commit

Permalink
fix: add v to version
Browse files Browse the repository at this point in the history
  • Loading branch information
amber-beasley-liatrio committed Aug 26, 2024
1 parent 8acdfbd commit 5a859e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
if: steps.go-semantic-release.outputs.version != ''
id: get_release
run: |
response=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/${{ github.repository }}/releases/tags/${{ steps.go-semantic-release.outputs.version}}")
response=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/${{ github.repository }}/releases/tags/v${{ steps.go-semantic-release.outputs.version}}")
upload_url=$(echo "$response" | jq -r '.upload_url')
if [ "$upload_url" = "null" ]; then
echo "::error::Upload URL is null for the ${{steps.go-semantic-release.outputs.version }} release."
echo "::error::Upload URL is null for the v${{steps.go-semantic-release.outputs.version }} release."
exit 1
fi
echo "UPLOAD_URL=$upload_url" >> $GITHUB_ENV
Expand Down

0 comments on commit 5a859e9

Please sign in to comment.