test github...

This commit is contained in:
Chl 2024-08-31 00:45:47 +02:00
parent 9ff90a77c2
commit 93b17c5291

View file

@ -71,7 +71,11 @@ jobs:
test -z "$GITHUB_TOKEN" && GITHUB_TOKEN="${{ github.token }}" test -z "$GITHUB_TOKEN" && GITHUB_TOKEN="${{ github.token }}"
# TODO : can't get it to work :-/ # TODO : can't get it to work :-/
#wget --header "Authorization: Bearer $GITHUB_TOKEN" -O "$DOWNLOAD_FILE" "${{ steps.uploading.outputs.artifact-url }}" #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" unzip "$DOWNLOAD_FILE"
sha256sum -c "$SHASUM_FILE" sha256sum -c "$SHASUM_FILE"