File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
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"
You can’t perform that action at this time.
0 commit comments