test github...

This commit is contained in:
Chl 2024-08-30 23:47:03 +02:00
parent 2ac8721340
commit 1a6b4e2c28

View file

@ -68,6 +68,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\@#" )"
# Got a 404, let's try a cooldown
sleep 10
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 }}"
unzip "$DOWNLOAD_FILE" unzip "$DOWNLOAD_FILE"
sha256sum -c "$SHASUM_FILE" sha256sum -c "$SHASUM_FILE"