Skip to content

Commit d03eb3d

Browse files
[CI] include node version in uploaded artifact name
This prevents a name clash when the CI job runs for more than one node version, when the workflow is triggered by a release event. Signed-off-by: Marc Dumais <[email protected]>
1 parent 5a85c99 commit d03eb3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci-cd.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
# (when appropriate)
3737
- uses: actions/upload-artifact@v4
3838
with:
39-
name: extension
39+
name: extension-${{ matrix.node-version }}
4040
path: vscode-trace-server-*.vsix
4141
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'eclipse-cdt-cloud/vscode-trace-server'
4242

@@ -79,7 +79,7 @@ jobs:
7979
# restore extension from the built-test job
8080
- uses: actions/download-artifact@v4
8181
with:
82-
name: extension
82+
name: extension-${{ matrix.node-version }}
8383
- uses: actions/setup-node@v4
8484
with:
8585
node-version: ${{ matrix.node-version }}
@@ -111,7 +111,7 @@ jobs:
111111
- uses: actions/checkout@v4
112112
- uses: actions/download-artifact@v4
113113
with:
114-
name: extension
114+
name: extension-${{ matrix.node-version }}
115115
- uses: actions/setup-node@v4
116116
with:
117117
node-version: ${{ matrix.node-version }}

0 commit comments

Comments
 (0)