Skip to content

Commit

Permalink
fix: debug LATEST_TAG [2/?]
Browse files Browse the repository at this point in the history
  • Loading branch information
yannouuuu committed Aug 9, 2024
1 parent 0d4597a commit c7071b6
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,22 @@ jobs:
id: get_latest_tag
run: |
LATEST_TAG=$(curl -s "https://api.github.com/repos/zed-industries/zed/releases" | jq -r 'first | .tag_name')
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_OUTPUT
echo "Latest tag found (including pre-releases): $LATEST_TAG"
- name: Debug - Print LATEST_TAG
run: |
echo "LATEST_TAG value: ${{ steps.get_latest_tag.outputs.LATEST_TAG }}"
if [ -z "${{ steps.get_latest_tag.outputs.LATEST_TAG }}" ]; then
echo "Error: LATEST_TAG is empty or null"
exit 1
fi
- name: Debug - Print API response
run: |
API_RESPONSE=$(curl -s "https://api.github.com/repos/zed-industries/zed/releases")
echo "API Response: $API_RESPONSE"
build-windows-amd64:
needs: set-version
runs-on: windows-latest
Expand Down

0 comments on commit c7071b6

Please sign in to comment.