From 63e9931cadef666e7c5737bcd8c411d7b0c9a205 Mon Sep 17 00:00:00 2001 From: Julien Date: Tue, 10 Sep 2024 14:44:42 +0200 Subject: [PATCH] Fix save and restore artefact Signed-off-by: Julien --- action.yml | 2 +- actions/restore_artifacts/action.yml | 3 ++- actions/save_artifacts/action.yml | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 29ba9e1..504d4d1 100644 --- a/action.yml +++ b/action.yml @@ -7,4 +7,4 @@ runs: with: repository: 'prometheus/promci' path: '.github/promci' - ref: v0.4.2 + ref: v0.4.3 diff --git a/actions/restore_artifacts/action.yml b/actions/restore_artifacts/action.yml index 206883b..87f86a2 100644 --- a/actions/restore_artifacts/action.yml +++ b/actions/restore_artifacts/action.yml @@ -8,7 +8,8 @@ runs: - name: Download all workflow run artifacts uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 with: - name: artifact + pattern: artifact-* + merge-multiple: true path: .artifacts - run: | for tar in .artifacts/*.tar diff --git a/actions/save_artifacts/action.yml b/actions/save_artifacts/action.yml index 920b19a..92991b7 100644 --- a/actions/save_artifacts/action.yml +++ b/actions/save_artifacts/action.yml @@ -11,7 +11,10 @@ runs: - run: | tar cvf artifact.tar ${{ inputs.directory }} mv artifact.tar artifact-$(sha1sum artifact.tar|awk '{ print $1 }').tar + echo NAME=$(echo artifact-*.tar) >> $GITHUB_OUTPUT shell: bash + id: tar - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 with: + name: ${steps.tar.outputs.NAME} path: artifact-*.tar