Upload-artifact: fix escaping
/ checkout (push) Successful in 3s Details
/ upload-artifact (push) Failing after 3s Details

This commit is contained in:
Michał Rudowicz 2025-02-25 19:58:50 +01:00
parent 290a6c2571
commit 5fc0227a47
2 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@ jobs:
container:
image: git.hswro.org/fleg/actions-experiments:latest
steps:
- uses: https://codeberg.org/fleg/light-actions/checkout@test1
- uses: https://codeberg.org/fleg/light-actions/checkout@test2
- run: cat README.md
upload-artifact:
runs-on: docker
@ -14,7 +14,7 @@ jobs:
image: git.hswro.org/fleg/actions-experiments:latest
steps:
- run: echo "test passed" > test.txt
- uses: https://codeberg.org/fleg/light-actions/upload-artifact@test1
- uses: https://codeberg.org/fleg/light-actions/upload-artifact@test2
with:
path: test.txt
artifact-name: test-artifact

View File

@ -19,7 +19,7 @@ runs:
--silent \
--fail-with-body \
--header 'Accept: application/json;api-version=6.0-preview' \
--header 'Authorization: Bearer ${ACTIONS_RUNTIME_TOKEN}' \
--header \"Authorization: Bearer ${ACTIONS_RUNTIME_TOKEN}\" \
--header 'Content-Type: application/json' \
--data '{\"type\": \"actions_storage\", \"name\": \"${{ inputs.artifact-name }}\"}' \
\"$ARTIFACT_BASE\" | jq --exit-status --raw-output .fileContainerResourceUrl
@ -30,7 +30,7 @@ runs:
--silent \
--fail-with-body \
--header 'Accept: application/json;api-version=6.0-preview' \
--header 'Authorization: Bearer ${ACTIONS_RUNTIME_TOKEN}' \
--header \"Authorization: Bearer ${ACTIONS_RUNTIME_TOKEN}\" \
--header 'Content-Type: application/octet-stream' \
--header "Content-Range: bytes 0-$(echo \"$(wc -c < ${{ inputs.path }}) - 1 | wc")/$(wc -c < ${{ inputs.path }})" \
--data-binary "@${{ inputs.path }}" \
@ -41,7 +41,7 @@ runs:
--silent \
--fail-with-body \
--header 'Accept: application/json;api-version=6.0-preview' \
--header 'Authorization: Bearer ${ACTIONS_RUNTIME_TOKEN}' \
--header \"Authorization: Bearer ${ACTIONS_RUNTIME_TOKEN}\" \
--header 'Content-Type: application/json' \
--data '{"size": 11}' \
"${ARTIFACT_BASE}&artifactName=${{ inputs.artifact-name }}"