diff --git a/.github/workflows/generate-release-zipfile.yml b/.github/workflows/generate-release-zipfile.yml index a91119f..d37829d 100644 --- a/.github/workflows/generate-release-zipfile.yml +++ b/.github/workflows/generate-release-zipfile.yml @@ -33,8 +33,8 @@ jobs: - name: Testing the artifact uploading id: "uploading" - #uses: ./myaction - uses: actions/upload-artifact@v4 + uses: ./myaction + #uses: actions/upload-artifact@v4 with: path: | toto diff --git a/action.yml b/action.yml index 123c230..d1e663b 100644 --- a/action.yml +++ b/action.yml @@ -76,8 +76,11 @@ runs: # Request an upload URL RESPONSE="$( wget -O - \ --header 'Content-Type:application/json' \ - --header 'User-Agent: @actions/artifact-2.1.9' \ --header "Authorization: Bearer $GITHUB_TOKEN" \ + --header 'User-Agent: @actions/artifact-2.1.9' \ + --header "Date: $( date --rfc-email --utc | sed 's/+0000$/GMT/' )" \ + --header "X-Github-Backend: Kubernetes" \ + --header "X-Github-Request-Id: E402:16E100:624E20:7C3AE0:$( dd if=/dev/random bs=1 count=4 2>/dev/null | hexdump -e '"%X"' )" \ --post-data "$( printf '{"version":4, "name":"%s", "workflow_run_backend_id":"%s", "workflow_job_run_backend_id":"%s"}' "${{ inputs.name }}" "$WORKFLOW_RUN_BACKEND_ID" "$WORKFLOW_JOB_RUN_BACKEND_ID" )" \ "https://results-receiver.actions.githubusercontent.com/twirp/github.actions.results.api.v1.ArtifactService/CreateArtifact" )"