From 96920694df1ef31fe8ab78918455c78d11a95326 Mon Sep 17 00:00:00 2001 From: pgilad Date: Mon, 3 Jun 2024 11:45:57 +0300 Subject: [PATCH] Try to use output name for artifact --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 09b89f2..c9d6a07 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,6 +20,8 @@ jobs: env: OS: ${{ matrix.os }} NODE_VERSION: ${{ matrix.node-version }} + outputs: + artifact-name: ${{ steps.set-artifact-name.outputs.artifact-name }} steps: - name: Set git to use LF @@ -67,6 +69,10 @@ jobs: - name: Reporter CLI smoke test run: node ./dist/cli/leasot-reporter.js --help + - name: Set artifact build name output + id: set-artifact-name + run: echo "artifact-name=build-${{ matrix.os }}-${{ matrix.node-version }}" >> $GITHUB_OUTPUT + - if: matrix.node-version == env.DEFAULT_NODE_VERSION && matrix.os == env.DEFAULT_OS_VERSION uses: actions/upload-artifact@v4 with: @@ -86,7 +92,7 @@ jobs: steps: - uses: actions/download-artifact@v4 with: - name: build-${{ env.DEFAULT_OS_VERSION }}-${{ env.DEFAULT_NODE_VERSION }} + name: ${{ needs.build.outputs.artifact-name }} - name: Check artifact run: test -d "./dist"