Skip to content

Commit 8cad183

Browse files
authored
Merge pull request #3 from arduino-libraries/dependabot/github_actions/actions/upload-artifact-4
Bump actions/upload-artifact from 3 to 4
2 parents ddec9b9 + 8693c9c commit 8cad183

File tree

3 files changed

+26
-13
lines changed

3 files changed

+26
-13
lines changed

Diff for: .github/workflows/compile-examples.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -36,28 +36,40 @@ jobs:
3636
matrix:
3737
board:
3838
- fqbn: "arduino:samd:mkr1000"
39+
artifact-name-suffix: arduino-samd-mkr1000
3940
platform-name: arduino:samd
4041
- fqbn: "arduino:samd:mkrwifi1010"
42+
artifact-name-suffix: arduino-samd-mkrwifi1010
4143
platform-name: arduino:samd
4244
- fqbn: "arduino:samd:nano_33_iot"
45+
artifact-name-suffix: arduino-samd-nano_33_iot
4346
platform-name: arduino:samd
4447
- fqbn: "arduino:samd:mkrgsm1400"
48+
artifact-name-suffix: arduino-samd-mkrgsm1400
4549
platform-name: arduino:samd
4650
- fqbn: "arduino:samd:mkrnb1500"
51+
artifact-name-suffix: arduino-samd-mkrnb1500
4752
platform-name: arduino:samd
4853
- fqbn: "arduino:mbed_portenta:envie_m7"
54+
artifact-name-suffix: arduino-mbed_portenta-envie_m7
4955
platform-name: arduino:mbed_portenta
5056
- fqbn: arduino:mbed_nano:nanorp2040connect
57+
artifact-name-suffix: arduino-mbed_nano-nanorp2040connect
5158
platform-name: arduino:mbed_nano
5259
- fqbn: arduino:mbed_nicla:nicla_vision
60+
artifact-name-suffix: arduino-mbed_nicla-nicla_vision
5361
platform-name: arduino:mbed_nicla
5462
- fqbn: arduino:mbed_opta:opta
63+
artifact-name-suffix: arduino-mbed_opta-opta
5564
platform-name: arduino:mbed_opta
5665
- fqbn: arduino:mbed_giga:giga
66+
artifact-name-suffix: arduino-mbed_giga-giga
5767
platform-name: arduino:mbed_giga
5868
- fqbn: arduino:renesas_portenta:portenta_c33
69+
artifact-name-suffix: arduino-renesas_portenta-portenta_c33
5970
platform-name: arduino:renesas_portenta
6071
- fqbn: arduino:renesas_uno:unor4wifi
72+
artifact-name-suffix: arduino-renesas_uno-unor4wifi
6173
platform-name: arduino:renesas_uno
6274

6375
include:
@@ -134,8 +146,8 @@ jobs:
134146
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
135147

136148
- name: Save memory usage change report as artifact
137-
uses: actions/upload-artifact@v3
149+
uses: actions/upload-artifact@v4
138150
with:
139-
name: ${{ env.SKETCHES_REPORTS_PATH }}
151+
name: sketches-report-${{ matrix.board.artifact-name-suffix }}
140152
if-no-files-found: error
141153
path: ${{ env.SKETCHES_REPORTS_PATH }}

Diff for: .github/workflows/report-size-deltas.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ jobs:
2020
- name: Comment size deltas reports to PRs
2121
uses: arduino/report-size-deltas@v1
2222
with:
23-
# The name of the workflow artifact created by the "Compile Examples" workflow
24-
sketches-reports-source: sketches-reports
23+
# Regex matching the names of the workflow artifacts created by the "Compile Examples" workflow
24+
sketches-reports-source: ^sketches-report-.+

Diff for: .github/workflows/sync-labels.yml

+10-9
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919

2020
env:
2121
CONFIGURATIONS_FOLDER: .github/label-configuration-files
22-
CONFIGURATIONS_ARTIFACT: label-configuration-files
22+
CONFIGURATIONS_ARTIFACT_PREFIX: label-configuration-file-
2323

2424
jobs:
2525
check:
@@ -70,13 +70,13 @@ jobs:
7070
file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/${{ matrix.filename }}
7171

7272
- name: Pass configuration files to next job via workflow artifact
73-
uses: actions/upload-artifact@v3
73+
uses: actions/upload-artifact@v4
7474
with:
7575
path: |
7676
*.yaml
7777
*.yml
7878
if-no-files-found: error
79-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
79+
name: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}${{ matrix.filename }}
8080

8181
sync:
8282
needs: download
@@ -107,16 +107,17 @@ jobs:
107107
- name: Checkout repository
108108
uses: actions/checkout@v4
109109

110-
- name: Download configuration files artifact
111-
uses: actions/download-artifact@v3
110+
- name: Download configuration file artifacts
111+
uses: actions/download-artifact@v4
112112
with:
113-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
113+
merge-multiple: true
114+
pattern: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}*
114115
path: ${{ env.CONFIGURATIONS_FOLDER }}
115116

116-
- name: Remove unneeded artifact
117-
uses: geekyeggo/delete-artifact@v2
117+
- name: Remove unneeded artifacts
118+
uses: geekyeggo/delete-artifact@v5
118119
with:
119-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
120+
name: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}*
120121

121122
- name: Merge label configuration files
122123
run: |

0 commit comments

Comments
 (0)