test github...

This commit is contained in:
Chl 2024-08-30 18:48:08 +02:00
parent e7820f91fb
commit 695f5b3a73

View file

@ -66,11 +66,9 @@ jobs:
cd "$TEST_ARTIFACT_DIR"
# In case the repository becomes private, we add our GITHUB_TOKEN to the artifact-url.
test -z "$GITHUB_TOKEN" && GITHUB_TOKEN="${{ github.token }}"
MY_AUTHENTICATED_URL="$( echo "${{ steps.uploading.outputs.artifact-url }}" | sed "s#^\(https\?://\)#\1$GITHUB_TOKEN\@#" )"
# I got a 404. Let's try by giving Github a bit of time
sleep 15
wget -O "$DOWNLOAD_FILE" "$MY_AUTHENTICATED_URL"
#test -z "$GITHUB_TOKEN" && GITHUB_TOKEN="${{ github.token }}"
#MY_AUTHENTICATED_URL="$( echo "${{ steps.uploading.outputs.artifact-url }}" | sed "s#^\(https\?://\)#\1$GITHUB_TOKEN\@#" )"
wget --header "Authorization: Bearer $GITHUB_TOKEN" -O "$DOWNLOAD_FILE" "${{ steps.uploading.outputs.artifact-url }}"
unzip "$DOWNLOAD_FILE"
sha256sum -c "$SHASUM_FILE"