test github...

This commit is contained in:
Chl 2024-08-30 19:35:15 +02:00
parent ea0df15187
commit 56b118fed1
2 changed files with 6 additions and 3 deletions

View file

@ -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

View file

@ -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"
)"