let's try this way
This commit is contained in:
parent
957aeaaeff
commit
f2ed70e4cc
|
|
@ -6,7 +6,7 @@ jobs:
|
||||||
container:
|
container:
|
||||||
image: git.hswro.org/fleg/actions-experiments:latest
|
image: git.hswro.org/fleg/actions-experiments:latest
|
||||||
steps:
|
steps:
|
||||||
- uses: https://codeberg.org/fleg/light-actions/checkout@test6
|
- uses: https://codeberg.org/fleg/light-actions/checkout@test7
|
||||||
- run: cat README.md
|
- run: cat README.md
|
||||||
upload-artifact:
|
upload-artifact:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
|
@ -14,7 +14,7 @@ jobs:
|
||||||
image: git.hswro.org/fleg/actions-experiments:latest
|
image: git.hswro.org/fleg/actions-experiments:latest
|
||||||
steps:
|
steps:
|
||||||
- run: echo "test passed" > test.txt
|
- run: echo "test passed" > test.txt
|
||||||
- uses: https://codeberg.org/fleg/light-actions/upload-artifact@test6
|
- uses: https://codeberg.org/fleg/light-actions/upload-artifact@test7
|
||||||
with:
|
with:
|
||||||
path: test.txt
|
path: test.txt
|
||||||
artifact-name: test-artifact
|
artifact-name: test-artifact
|
||||||
|
|
|
||||||
|
|
@ -13,13 +13,12 @@ runs:
|
||||||
- run: |
|
- run: |
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
ARTIFACT_BASE="${ACTIONS_RUNTIME_URL}_apis/pipelines/workflows/${GITHUB_RUN_ID}/artifacts?api-version=6.0-preview"
|
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="$(
|
RESOURCE_URL="$(
|
||||||
curl \
|
curl \
|
||||||
-XPOST \
|
-XPOST \
|
||||||
--silent \
|
--silent \
|
||||||
--fail-with-body \
|
--fail-with-body \
|
||||||
--header ${AUTH_HEADER}\
|
--header "Authorization: Bearer ${{ github.token }}" \
|
||||||
--header 'Accept: application/json;api-version=6.0-preview' \
|
--header 'Accept: application/json;api-version=6.0-preview' \
|
||||||
--header 'Content-Type: application/json' \
|
--header 'Content-Type: application/json' \
|
||||||
--data '{\"type\": \"actions_storage\", \"name\": \"${{ inputs.artifact-name }}\"}' \
|
--data '{\"type\": \"actions_storage\", \"name\": \"${{ inputs.artifact-name }}\"}' \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue