test github...

This commit is contained in:
Chl 2024-08-30 18:29:18 +02:00
parent 34b32b9e7d
commit 2235be62a5

View file

@ -67,6 +67,8 @@ jobs:
# In case the repository becomes private, we add our GITHUB_TOKEN to the artifact-url. # In case the repository becomes private, we add our GITHUB_TOKEN to the artifact-url.
test -z "$GITHUB_TOKEN" && GITHUB_TOKEN="${{ github.token }}" test -z "$GITHUB_TOKEN" && GITHUB_TOKEN="${{ github.token }}"
MY_AUTHENTICATED_URL="$( echo "${{ steps.uploading.outputs.artifact-url }}" | sed "s#^\(https\?://\)#\1$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" wget -O "$DOWNLOAD_FILE" "$MY_AUTHENTICATED_URL"
unzip "$DOWNLOAD_FILE" unzip "$DOWNLOAD_FILE"
sha256sum -c "$SHASUM_FILE" sha256sum -c "$SHASUM_FILE"