From b53d3b6ad0f77d940739f8832112ae503042ff54 Mon Sep 17 00:00:00 2001 From: Chl Date: Sat, 31 Aug 2024 00:07:29 +0200 Subject: [PATCH] test github... --- .github/workflows/generate-release-zipfile.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/generate-release-zipfile.yml b/.github/workflows/generate-release-zipfile.yml index 79c1d90..e43d5b2 100644 --- a/.github/workflows/generate-release-zipfile.yml +++ b/.github/workflows/generate-release-zipfile.yml @@ -50,6 +50,9 @@ jobs: printf "steps.uploading.outputs.artifact-url: %s\n" "${{ steps.uploading.outputs.artifact-url }}" - name: Check the content of the uploaded artifact + # To allow access to the artifact with the GITHUB_TOKEN + permissions: + actions: read run: | # Stop at first error and be verbose set -ex @@ -67,9 +70,6 @@ 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\@#" )" - # Got a 404, let's try a cooldown - sleep 10 wget --header "Authorization: Bearer $GITHUB_TOKEN" -O "$DOWNLOAD_FILE" "${{ steps.uploading.outputs.artifact-url }}" unzip "$DOWNLOAD_FILE" sha256sum -c "$SHASUM_FILE"