From 5fc0227a4763cc922249a484a608f0bb51fa0b8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Rudowicz?= Date: Tue, 25 Feb 2025 19:58:50 +0100 Subject: [PATCH] Upload-artifact: fix escaping --- .forgejo/workflows/test_workflow.yml | 4 ++-- upload-artifact/action.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/test_workflow.yml b/.forgejo/workflows/test_workflow.yml index 18aa68e..cc1b993 100644 --- a/.forgejo/workflows/test_workflow.yml +++ b/.forgejo/workflows/test_workflow.yml @@ -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 diff --git a/upload-artifact/action.yml b/upload-artifact/action.yml index 8c67705..d99ad24 100644 --- a/upload-artifact/action.yml +++ b/upload-artifact/action.yml @@ -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 }}"