From 93b17c5291234c2cb56b1ac47a9ddac98d782e7d Mon Sep 17 00:00:00 2001 From: Chl Date: Sat, 31 Aug 2024 00:45:47 +0200 Subject: [PATCH] test github... --- .github/workflows/generate-release-zipfile.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generate-release-zipfile.yml b/.github/workflows/generate-release-zipfile.yml index 9f1e43e..bb9d318 100644 --- a/.github/workflows/generate-release-zipfile.yml +++ b/.github/workflows/generate-release-zipfile.yml @@ -71,7 +71,11 @@ jobs: test -z "$GITHUB_TOKEN" && GITHUB_TOKEN="${{ github.token }}" # TODO : can't get it to work :-/ #wget --header "Authorization: Bearer $GITHUB_TOKEN" -O "$DOWNLOAD_FILE" "${{ steps.uploading.outputs.artifact-url }}" - wget -O "$DOWNLOAD_FILE" --header "Authorization: token $GITHUB_TOKEN" "https://api.github.com/repos/$GITHUB_REPOSITORY/actions/artifacts/${{ steps.uploading.outputs.artifact-id }}/zip" + + TMP_WGET_OUTPUT="$( mktemp )" + wget -O "$DOWNLOAD_FILE" --header "Authorization: token $GITHUB_TOKEN" "https://api.github.com/repos/$GITHUB_REPOSITORY/actions/artifacts/${{ steps.uploading.outputs.artifact-id }}/zip" 2>"$TMP_WGET_OUTPUT" || ( + wget -O "$DOWNLOAD_FILE" "$( sed -n '/^Location: /s/^Location: //p' "$TMP_WGET_OUTPUT" | tail -n 1 )" + ) unzip "$DOWNLOAD_FILE" sha256sum -c "$SHASUM_FILE"