diff --git a/.forgejo/workflows/test_workflow.yml b/.forgejo/workflows/test_workflow.yml index 8f9337a..373461e 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@test5 + - uses: https://codeberg.org/fleg/light-actions/checkout@test6 - 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@test5 + - uses: https://codeberg.org/fleg/light-actions/upload-artifact@test6 with: path: test.txt artifact-name: test-artifact diff --git a/upload-artifact/action.yml b/upload-artifact/action.yml index bc1610f..6ce489a 100644 --- a/upload-artifact/action.yml +++ b/upload-artifact/action.yml @@ -13,12 +13,13 @@ runs: - run: | set -euxo pipefail ARTIFACT_BASE="${ACTIONS_RUNTIME_URL}_apis/pipelines/workflows/${GITHUB_RUN_ID}/artifacts?api-version=6.0-preview" + AUTH_HEADER="Authorization: Bearer ${GITHUB_TOKEN}" RESOURCE_URL="$( curl \ -XPOST \ --silent \ --fail-with-body \ - --header \'Authorization: Bearer ${GITHUB_TOKEN}\' \ + --header ${AUTH_HEADER}\ --header 'Accept: application/json;api-version=6.0-preview' \ --header 'Content-Type: application/json' \ --data '{\"type\": \"actions_storage\", \"name\": \"${{ inputs.artifact-name }}\"}' \