Skip to content

Commit

Permalink
Try to use output name for artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
pgilad committed Jun 3, 2024
1 parent 3e99cb3 commit 9692069
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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"

Expand Down

0 comments on commit 9692069

Please sign in to comment.