let's see

This commit is contained in:
Michał Rudowicz 2025-02-25 20:31:51 +01:00
parent 22a20ce877
commit d29d2129cb
2 changed files with 5 additions and 3 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@test11
- uses: https://codeberg.org/fleg/light-actions/checkout@test12
- 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@test11
- uses: https://codeberg.org/fleg/light-actions/upload-artifact@test12
with:
path: test.txt
artifact-name: test-artifact

View File

@ -34,6 +34,9 @@ runs:
--header 'Accept: application/json;api-version=6.0-preview' \
--header "Authorization: Bearer ${{ github.token }}" \
--header 'Content-Type: application/octet-stream' \
--header "x-tfs-filelength: ${FILE_SIZE_BYTES}" \
--header "content-length: ${FILE_SIZE_BYTES}" \
--header "x-actions-results-md5: $(md5sum ${{ inputs.path }})" \
--header "Content-Range: bytes 0-${FILE_SIZE_BYTES_MINUS_ONE}/${FILE_SIZE_BYTES}" \
--data-binary "@${{ inputs.path }}" \
"${RESOURCE_URL}?itemPath=${{ inputs.artifact-name }}/$(basename ${{ inputs.path }})"
@ -45,6 +48,5 @@ runs:
--header 'Accept: application/json;api-version=6.0-preview' \
--header "Authorization: Bearer ${{ github.token }}" \
--header 'Content-Type: application/json' \
--data '{"size": ${FILE_SIZE_BYTES}}' \
"${ARTIFACT_BASE}&artifactName=${{ inputs.artifact-name }}"
shell: sh