test github...
This commit is contained in:
parent
1a6b4e2c28
commit
b53d3b6ad0
1 changed files with 3 additions and 3 deletions
|
@ -50,6 +50,9 @@ jobs:
|
||||||
printf "steps.uploading.outputs.artifact-url: %s\n" "${{ steps.uploading.outputs.artifact-url }}"
|
printf "steps.uploading.outputs.artifact-url: %s\n" "${{ steps.uploading.outputs.artifact-url }}"
|
||||||
|
|
||||||
- name: Check the content of the uploaded artifact
|
- name: Check the content of the uploaded artifact
|
||||||
|
# To allow access to the artifact with the GITHUB_TOKEN
|
||||||
|
permissions:
|
||||||
|
actions: read
|
||||||
run: |
|
run: |
|
||||||
# Stop at first error and be verbose
|
# Stop at first error and be verbose
|
||||||
set -ex
|
set -ex
|
||||||
|
@ -67,9 +70,6 @@ jobs:
|
||||||
cd "$TEST_ARTIFACT_DIR"
|
cd "$TEST_ARTIFACT_DIR"
|
||||||
# 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\@#" )"
|
|
||||||
# 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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue