Upload-artifact: fix escaping
This commit is contained in:
parent
290a6c2571
commit
5fc0227a47
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 }}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue