From 29dccddd383a6abeead83246e39059116c250508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Rudowicz?= Date: Tue, 25 Feb 2025 20:06:19 +0100 Subject: [PATCH] preview what's going to jq --- .forgejo/workflows/test_workflow.yml | 4 ++-- upload-artifact/action.yml | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/test_workflow.yml b/.forgejo/workflows/test_workflow.yml index adffbbf..c7f4fec 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@test3 + - uses: https://codeberg.org/fleg/light-actions/checkout@test4 - 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@test3 + - uses: https://codeberg.org/fleg/light-actions/upload-artifact@test4 with: path: test.txt artifact-name: test-artifact diff --git a/upload-artifact/action.yml b/upload-artifact/action.yml index a33cbf2..7e6787b 100644 --- a/upload-artifact/action.yml +++ b/upload-artifact/action.yml @@ -13,7 +13,6 @@ runs: - run: | set -euxo pipefail ARTIFACT_BASE="${ACTIONS_RUNTIME_URL}_apis/pipelines/workflows/${GITHUB_RUN_ID}/artifacts?api-version=6.0-preview" - echo test: ${ACTIONS_RUNTIME_TOKEN} RESOURCE_URL="$( curl \ -XPOST \ @@ -23,7 +22,7 @@ runs: --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 + $ARTIFACT_BASE | tee /dev/stderr | jq --exit-status --raw-output .fileContainerResourceUrl )" curl \