Skip to content

Commit 7226129

Browse files
committed
update test workflow to use different artifact names for matrix
1 parent ada9446 commit 7226129

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,27 +50,27 @@ jobs:
5050
- name: Upload artifact A
5151
uses: actions/upload-artifact@v4-beta
5252
with:
53-
name: 'Artifact-A'
53+
name: Artifact-A-${{ matrix.runs-on }}
5454
path: path/to/artifact-A
5555

5656
- name: Upload artifact B
5757
uses: actions/upload-artifact@v4-beta
5858
with:
59-
name: 'Artifact-B'
59+
name: Artifact-B-${{ matrix.runs-on }}
6060
path: path/to/artifact-B
6161

6262
# Test downloading a single artifact
6363
- name: Download artifact A
6464
uses: ./
6565
with:
66-
name: 'Artifact-A'
66+
name: Artifact-A-${{ matrix.runs-on }}
6767
path: some/new/path
6868

6969
# Test downloading an artifact using tilde expansion
7070
- name: Download artifact A
7171
uses: ./
7272
with:
73-
name: 'Artifact-A'
73+
name: Artifact-A-${{ matrix.runs-on }}
7474
path: ~/some/path/with/a/tilde
7575

7676
- name: Verify successful download
@@ -95,8 +95,8 @@ jobs:
9595

9696
- name: Verify successful download
9797
run: |
98-
$fileA = "some/other/path/Artifact-A/file-A.txt"
99-
$fileB = "some/other/path/Artifact-B/file-B.txt"
98+
$fileA = "some/other/path/Artifact-A-${{ matrix.runs-on }}/file-A.txt"
99+
$fileB = "some/other/path/Artifact-B-${{ matrix.runs-on }}/file-B.txt"
100100
if(!(Test-Path -path $fileA) -or !(Test-Path -path $fileB))
101101
{
102102
Write-Error "Expected files do not exist"

0 commit comments

Comments
 (0)