File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 22
22
parameters :
23
23
# Coverage for pre-actions/upload-artifact@v4 approach where all reports are stored in a single artifact.
24
24
- artifact-name-suffix : multi
25
+ artifact-version : 1
25
26
reports-folder : multi-report-artifact
26
27
# Coverage for actions/upload-artifact@v4 approach where each report is stored in a separate artifact.
27
28
- artifact-name-suffix : arduino-samd-mkrzero
29
+ artifact-version : 2
28
30
reports-folder : per-report-artifact
29
31
30
32
steps :
45
47
jq '.commit_hash = "${{ github.event.pull_request.head.sha }}"' "$reportFile" > "${SKETCHES_REPORTS_PATH}/$reportFile"
46
48
done
47
49
48
- - name : Save sketches report as workflow artifact
50
+ - name : Save sketches report as v1 format workflow artifact
51
+ if : matrix.parameters.artifact-version == '1'
52
+ # actions/upload-artifact 3.x is the last version to produce v1 format artifacts:
53
+ # https://github.com/actions/upload-artifact/blob/main/README.md#v4---whats-new
49
54
uses : actions/upload-artifact@v3
50
55
with :
51
56
if-no-files-found : error
52
57
path : ${{ env.SKETCHES_REPORTS_PATH }}
53
58
name : ${{ env.ARTIFACT_NAME_PREFIX }}${{ matrix.parameters.artifact-name-suffix }}
59
+
60
+ - name : Save sketches report as v2 format workflow artifact
61
+ if : matrix.parameters.artifact-version == '2'
62
+ uses : actions/upload-artifact@v4
63
+ with :
64
+ if-no-files-found : error
65
+ path : ${{ env.SKETCHES_REPORTS_PATH }}
66
+ name : ${{ env.ARTIFACT_NAME_PREFIX }}${{ matrix.parameters.artifact-name-suffix }}
You can’t perform that action at this time.
0 commit comments