diff --git a/.forgejo/workflows/test_workflow.yml b/.forgejo/workflows/test_workflow.yml index c7f4fec..8f9337a 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@test4 + - uses: https://codeberg.org/fleg/light-actions/checkout@test5 - 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@test4 + - uses: https://codeberg.org/fleg/light-actions/upload-artifact@test5 with: path: test.txt artifact-name: test-artifact diff --git a/upload-artifact/action.yml b/upload-artifact/action.yml index 7e6787b..bc1610f 100644 --- a/upload-artifact/action.yml +++ b/upload-artifact/action.yml @@ -18,8 +18,8 @@ runs: -XPOST \ --silent \ --fail-with-body \ + --header \'Authorization: Bearer ${GITHUB_TOKEN}\' \ --header 'Accept: application/json;api-version=6.0-preview' \ - --header \"Authorization: Bearer ${ACTIONS_RUNTIME_TOKEN}\" \ --header 'Content-Type: application/json' \ --data '{\"type\": \"actions_storage\", \"name\": \"${{ inputs.artifact-name }}\"}' \ $ARTIFACT_BASE | tee /dev/stderr | 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 ${GITHUB_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 ${GITHUB_TOKEN}\" \ --header 'Content-Type: application/json' \ --data '{"size": 11}' \ "${ARTIFACT_BASE}&artifactName=${{ inputs.artifact-name }}"