test github...

This commit is contained in:
Chl 2024-08-31 00:51:17 +02:00
parent 201954e788
commit b14dcb5268

View file

@ -74,7 +74,7 @@ jobs:
TMP_WGET_OUTPUT="$( mktemp )" 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" --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" --header "Authorization: Bearer $ACTIONS_RUNTIME_TOKEN" "$( sed -n '/^Location: /s/^Location: //p' "$TMP_WGET_OUTPUT" | tail -n 1 )" wget -O "$DOWNLOAD_FILE" "$( sed -n 's/^Location: \(.*\) \[following\]/\1/p' "$TMP_WGET_OUTPUT" | tail -n 1 )"
) )
unzip "$DOWNLOAD_FILE" unzip "$DOWNLOAD_FILE"
sha256sum -c "$SHASUM_FILE" sha256sum -c "$SHASUM_FILE"