From c7071b6469caa099ad959fdc3e4b1ca5ff1bc88d Mon Sep 17 00:00:00 2001 From: Yann Renard Date: Fri, 9 Aug 2024 21:30:32 +0200 Subject: [PATCH] fix: debug LATEST_TAG [2/?] --- .github/workflows/build.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e1318d5..a472d97 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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