Skip to content

Commit

Permalink
fix: use specific release version
Browse files Browse the repository at this point in the history
  • Loading branch information
amber-beasley-liatrio committed Aug 26, 2024
1 parent 1cad028 commit 76714b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ jobs:
changelog-generator-opt: emojis=true
allow-initial-development-versions: true

- name: Get latest release
- name: Get release
if: steps.go-semantic-release.outputs.version != ''
id: get_latest_release
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/latest")
response=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/${{ github.repository }}/releases/${{ 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 latest release."
echo "::error::Upload URL is null for the ${{steps.go-semantic-release.outputs.version }} release."
exit 1
fi
echo "UPLOAD_URL=$upload_url" >> $GITHUB_ENV
Expand Down

0 comments on commit 76714b1

Please sign in to comment.