From 86cf871314e8a8dd3cfe2c6a10e293b8ec8362f4 Mon Sep 17 00:00:00 2001 From: ebner Date: Wed, 23 Sep 2026 16:13:01 +0200 Subject: [PATCH] add download ... --- .gitea/workflows/check_releases.yaml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/check_releases.yaml b/.gitea/workflows/check_releases.yaml index a7ccef8..0511453 100644 --- a/.gitea/workflows/check_releases.yaml +++ b/.gitea/workflows/check_releases.yaml @@ -30,11 +30,11 @@ jobs: echo "${API_OUTPUT}" - # # Extract the tag name and published date of the latest release - # LATEST_TAG=$(echo "${API_OUTPUT}" | jq -r '.[0].tag_name') - # PUBLISH_DATE=$(echo "${API_OUTPUT}" | jq -r '.[0].published_at') + # Extract the tag name and published date of the latest release + LATEST_TAG=$(echo "${API_OUTPUT}" | jq -r '.[0].tag_name') + PUBLISH_DATE=$(echo "${API_OUTPUT}" | jq -r '.[0].published_at') - # echo "✅ Found latest version: ${LATEST_TAG} published on ${PUBLISH_DATE}" + echo "✅ Found latest version: ${LATEST_TAG} published on ${PUBLISH_DATE}" # # --- 2. Implement your custom logic here --- # # You need a mechanism to store the previously checked tag/date @@ -47,6 +47,19 @@ jobs: # # echo "LATEST_VERSION=${LATEST_TAG}" >> $GITHUB_ENV # echo "LATEST_VERSION=${LATEST_TAG}" + - name: Download latest release + run: | + LATEST_RELEASE_URL=$(echo "${API_OUTPUT}" | jq -r '.[0].zipball_url') + if [ -z "$LATEST_RELEASE_URL" ]; then + echo "⚠️ No download URL found for the latest release." + exit 0 + fi + echo "Downloading latest release from $LATEST_RELEASE_URL ..." + + # curl -L -o latest_release.zip "$LATEST_RELEASE_URL" + + # curl -L -o latest https://github.com/prefix-dev/pixi/releases/download/v%{version}/pixi-x86_64-unknown-linux-musl.tar.gz + # - name: Deploy/Build action if release found # if: env.LATEST_VERSION # This step runs ONLY if the previous step successfully set LATEST_VERSION # run: |