From 5f271a7f83632f80cc4a5ec0bfba6ae25e8b7c14 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 28 Sep 2024 11:39:33 +0800 Subject: [PATCH] debug --- .github/workflows/release-macos.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-macos.yml b/.github/workflows/release-macos.yml index 9d860580..43d2353a 100644 --- a/.github/workflows/release-macos.yml +++ b/.github/workflows/release-macos.yml @@ -13,7 +13,9 @@ jobs: run: | echo "Downloading latest artifacts..." ARTIFACT_URL="https://api.github.com/repos/YaoApp/yao/actions/artifacts" - ARTIFACTS=$(curl -s -H "Accept: application/vnd.github.v3+json" $ARTIFACT_URL | jq -r '.artifacts[] | select(.name | contains("yao-macos")) | .id') + ARTIFACT_CONTENT=$(curl -s -H "Accept: application/vnd.github.v3+json" $ARTIFACT_URL) + echo $ARTIFACT_CONTENT + ARTIFACTS=$(echo $ARTIFACT_CONTENT | jq -r '.artifacts[] | select(.name | contains("yao-macos")) | .id') for id in $ARTIFACTS; do echo "https://api.github.com/repos/YaoApp/yao/actions/artifacts/$id/zip" curl -L -H "Accept: application/vnd.github.v3+json" \