Skip to content

Commit d64cf22

Browse files
authored
Merge pull request #26 from arduino-libraries/dependabot/github_actions/actions/upload-artifact-4
Bump actions/upload-artifact from 3 to 4
2 parents 6536ab5 + cf2c1a6 commit d64cf22

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

.github/workflows/compile-examples.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ jobs:
5757
board:
5858
- fqbn: arduino:mbed_portenta:envie_m7
5959
platform-name: arduino:mbed_portenta
60+
artifact-name-suffix: arduino-mbed_portenta-envie_m7
6061
- fqbn: arduino:mbed_giga:giga
6162
platform-name: arduino:mbed_giga
63+
artifact-name-suffix: arduino-mbed_giga-giga
6264

6365
include:
6466
- board:
@@ -97,8 +99,8 @@ jobs:
9799
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
98100

99101
- name: Save memory usage change report as artifact
100-
uses: actions/upload-artifact@v3
102+
uses: actions/upload-artifact@v4
101103
with:
102-
name: ${{ env.SKETCHES_REPORTS_PATH }}
104+
name: sketches-report-${{ matrix.board.artifact-name-suffix }}
103105
if-no-files-found: error
104106
path: ${{ env.SKETCHES_REPORTS_PATH }}

.github/workflows/report-size-deltas.yml

Lines changed: 2 additions & 2 deletions
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-.+

.github/workflows/sync-labels.yml

Lines changed: 10 additions & 9 deletions
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)