add download ...
This commit is contained in:
1 parent
49894caa51
commit
86cf871314
1 file changed
+17
-4
@@ -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: |
|
||||
|
||||
Reference in new issue
Block a user