Skip to content

Commit 2292b6a

Browse files
authored
Merge pull request #507 from arduino/update-some-workflows-artifact-actions
Update some workflows upload/download artifact actions
2 parents 9064feb + 0240e3b commit 2292b6a

5 files changed

+31
-26
lines changed

workflow-templates/check-go-dependencies-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
# Some might find it convenient to have CI generate the cache rather than setting up for it locally
112112
- name: Upload cache to workflow artifact
113113
if: failure() && steps.diff.outcome == 'failure'
114-
uses: actions/upload-artifact@v3
114+
uses: actions/upload-artifact@v4
115115
with:
116116
if-no-files-found: error
117117
name: dep-licenses-cache

workflow-templates/publish-go-nightly-task.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ jobs:
5454
run: task dist:${{ matrix.os }}
5555

5656
- name: Upload artifacts
57-
uses: actions/upload-artifact@v3
57+
uses: actions/upload-artifact@v4
5858
with:
5959
if-no-files-found: error
60-
name: ${{ env.ARTIFACT_NAME }}
60+
name: ${{ env.ARTIFACT_NAME }}-${{ matrix.os }}
6161
path: ${{ env.DIST_DIR }}
6262

6363
notarize-macos:
@@ -88,9 +88,10 @@ jobs:
8888
uses: actions/checkout@v4
8989

9090
- name: Download artifacts
91-
uses: actions/download-artifact@v3
91+
uses: actions/download-artifact@v4
9292
with:
93-
name: ${{ env.ARTIFACT_NAME }}
93+
pattern: ${{ env.ARTIFACT_NAME }}-*
94+
merge-multiple: true
9495
path: ${{ env.DIST_DIR }}
9596

9697
- name: Import Code-Signing Certificates
@@ -165,10 +166,10 @@ jobs:
165166
echo "PACKAGE_FILENAME=$PACKAGE_FILENAME" >> $GITHUB_ENV
166167
167168
- name: Upload artifact
168-
uses: actions/upload-artifact@v3
169+
uses: actions/upload-artifact@v4
169170
with:
170171
if-no-files-found: error
171-
name: ${{ env.ARTIFACT_NAME }}
172+
name: ${{ env.ARTIFACT_NAME }}-notarized-${{ matrix.artifact.name }}
172173
path: ${{ env.DIST_DIR }}/${{ env.PACKAGE_FILENAME }}
173174

174175
publish-nightly:
@@ -180,9 +181,10 @@ jobs:
180181

181182
steps:
182183
- name: Download artifact
183-
uses: actions/download-artifact@v3
184+
uses: actions/download-artifact@v4
184185
with:
185-
name: ${{ env.ARTIFACT_NAME }}
186+
pattern: ${{ env.ARTIFACT_NAME }}-*
187+
merge-multiple: true
186188
path: ${{ env.DIST_DIR }}
187189

188190
- name: Create checksum file

workflow-templates/publish-go-tester-task.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
132132
# Transfer builds to artifacts job
133133
- name: Upload build artifact
134-
uses: actions/upload-artifact@v3
134+
uses: actions/upload-artifact@v4
135135
with:
136136
path: ${{ env.DIST_DIR }}/${{ matrix.os.path }}
137137
name: ${{ matrix.os.name }}
@@ -146,7 +146,7 @@ jobs:
146146

147147
steps:
148148
- name: Download build artifacts
149-
uses: actions/download-artifact@v3
149+
uses: actions/download-artifact@v4
150150

151151
- name: Create checksum file
152152
run: |
@@ -161,7 +161,7 @@ jobs:
161161
done
162162
163163
- name: Upload checksum artifact
164-
uses: actions/upload-artifact@v3
164+
uses: actions/upload-artifact@v4
165165
with:
166166
path: ./*checksums.txt
167167
name: checksums

workflow-templates/release-go-task.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ jobs:
6161
run: task dist:${{ matrix.os }}
6262

6363
- name: Upload artifacts
64-
uses: actions/upload-artifact@v3
64+
uses: actions/upload-artifact@v4
6565
with:
6666
if-no-files-found: error
67-
name: ${{ env.ARTIFACT_NAME }}
67+
name: ${{ env.ARTIFACT_NAME }}-${{ matrix.os }}
6868
path: ${{ env.DIST_DIR }}
6969

7070
notarize-macos:
@@ -93,9 +93,10 @@ jobs:
9393
uses: actions/checkout@v4
9494

9595
- name: Download artifacts
96-
uses: actions/download-artifact@v3
96+
uses: actions/download-artifact@v4
9797
with:
98-
name: ${{ env.ARTIFACT_NAME }}
98+
pattern: ${{ env.ARTIFACT_NAME }}-*
99+
merge-multiple: true
99100
path: ${{ env.DIST_DIR }}
100101

101102
- name: Import Code-Signing Certificates
@@ -170,10 +171,10 @@ jobs:
170171
echo "PACKAGE_FILENAME=$PACKAGE_FILENAME" >> $GITHUB_ENV
171172
172173
- name: Upload artifact
173-
uses: actions/upload-artifact@v3
174+
uses: actions/upload-artifact@v4
174175
with:
175176
if-no-files-found: error
176-
name: ${{ env.ARTIFACT_NAME }}
177+
name: ${{ env.ARTIFACT_NAME }}-notarized-${{ matrix.artifact.name }}
177178
path: ${{ env.DIST_DIR }}/${{ env.PACKAGE_FILENAME }}
178179

179180
create-release:
@@ -186,9 +187,10 @@ jobs:
186187

187188
steps:
188189
- name: Download artifact
189-
uses: actions/download-artifact@v3
190+
uses: actions/download-artifact@v4
190191
with:
191-
name: ${{ env.ARTIFACT_NAME }}
192+
pattern: ${{ env.ARTIFACT_NAME }}-*
193+
merge-multiple: true
192194
path: ${{ env.DIST_DIR }}
193195

194196
- name: Create checksum file

workflow-templates/sync-labels.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ jobs:
7373
file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/${{ matrix.filename }}
7474

7575
- name: Pass configuration files to next job via workflow artifact
76-
uses: actions/upload-artifact@v3
76+
uses: actions/upload-artifact@v4
7777
with:
7878
path: |
7979
*.yaml
8080
*.yml
8181
if-no-files-found: error
82-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
82+
name: ${{ env.CONFIGURATIONS_ARTIFACT }}-${{ matrix.filename }}
8383

8484
sync:
8585
needs: download
@@ -114,15 +114,16 @@ jobs:
114114
uses: actions/checkout@v4
115115

116116
- name: Download configuration files artifact
117-
uses: actions/download-artifact@v3
117+
uses: actions/download-artifact@v4
118118
with:
119-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
119+
pattern: ${{ env.CONFIGURATIONS_ARTIFACT }}-*
120+
merge-multiple: true
120121
path: ${{ env.CONFIGURATIONS_FOLDER }}
121122

122123
- name: Remove unneeded artifact
123-
uses: geekyeggo/delete-artifact@v2
124+
uses: geekyeggo/delete-artifact@v5
124125
with:
125-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
126+
name: ${{ env.CONFIGURATIONS_ARTIFACT }}-*
126127

127128
- name: Merge label configuration files
128129
run: |

0 commit comments

Comments
 (0)