Skip to content

Commit 55b03d6

Browse files
authored
Merge pull request #662 from arduino/dependabot/github_actions/actions/upload-artifact-4
Bump actions/upload-artifact from 3 to 4
2 parents 8c0bda0 + ac91b80 commit 55b03d6

5 files changed

+34
-29
lines changed

Diff for: .github/workflows/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
include-hidden-files: true

Diff for: .github/workflows/publish-go-nightly-task.yml

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

5555
- name: Upload artifacts
56-
uses: actions/upload-artifact@v3
56+
uses: actions/upload-artifact@v4
5757
with:
5858
if-no-files-found: error
59-
name: ${{ env.ARTIFACT_NAME }}
59+
name: ${{ env.ARTIFACT_NAME }}-${{ matrix.os }}
6060
path: ${{ env.DIST_DIR }}
6161

6262
notarize-macos:
@@ -87,9 +87,10 @@ jobs:
8787
uses: actions/checkout@v4
8888

8989
- name: Download artifacts
90-
uses: actions/download-artifact@v3
90+
uses: actions/download-artifact@v4
9191
with:
92-
name: ${{ env.ARTIFACT_NAME }}
92+
pattern: ${{ env.ARTIFACT_NAME }}-*
93+
merge-multiple: true
9394
path: ${{ env.DIST_DIR }}
9495

9596
- name: Import Code-Signing Certificates
@@ -163,10 +164,10 @@ jobs:
163164
echo "PACKAGE_FILENAME=$PACKAGE_FILENAME" >> $GITHUB_ENV
164165
165166
- name: Upload artifact
166-
uses: actions/upload-artifact@v3
167+
uses: actions/upload-artifact@v4
167168
with:
168169
if-no-files-found: error
169-
name: ${{ env.ARTIFACT_NAME }}
170+
name: ${{ env.ARTIFACT_NAME }}-notarized-${{ matrix.artifact.name }}
170171
path: ${{ env.DIST_DIR }}/${{ env.PACKAGE_FILENAME }}
171172

172173
publish-nightly:
@@ -176,9 +177,10 @@ jobs:
176177

177178
steps:
178179
- name: Download artifact
179-
uses: actions/download-artifact@v3
180+
uses: actions/download-artifact@v4
180181
with:
181-
name: ${{ env.ARTIFACT_NAME }}
182+
pattern: ${{ env.ARTIFACT_NAME }}-*
183+
merge-multiple: true
182184
path: ${{ env.DIST_DIR }}
183185

184186
- name: Create checksum file

Diff for: .github/workflows/publish-go-tester-task.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ jobs:
129129
130130
# Transfer builds to artifacts job
131131
- name: Upload build artifact
132-
uses: actions/upload-artifact@v3
132+
uses: actions/upload-artifact@v4
133133
with:
134134
path: ${{ env.DIST_DIR }}/${{ matrix.os.path }}
135135
name: ${{ matrix.os.name }}
@@ -144,7 +144,7 @@ jobs:
144144

145145
steps:
146146
- name: Download build artifacts
147-
uses: actions/download-artifact@v3
147+
uses: actions/download-artifact@v4
148148

149149
- name: Create checksum file
150150
run: |
@@ -159,7 +159,7 @@ jobs:
159159
done
160160
161161
- name: Upload checksum artifact
162-
uses: actions/upload-artifact@v3
162+
uses: actions/upload-artifact@v4
163163
with:
164164
path: ./*checksums.txt
165165
name: checksums

Diff for: .github/workflows/release-go-task.yml

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

6262
- name: Upload artifacts
63-
uses: actions/upload-artifact@v3
63+
uses: actions/upload-artifact@v4
6464
with:
6565
if-no-files-found: error
66-
name: ${{ env.ARTIFACT_NAME }}
66+
name: ${{ env.ARTIFACT_NAME }}-${{ matrix.os }}
6767
path: ${{ env.DIST_DIR }}
6868

6969
notarize-macos:
@@ -92,9 +92,10 @@ jobs:
9292
uses: actions/checkout@v4
9393

9494
- name: Download artifacts
95-
uses: actions/download-artifact@v3
95+
uses: actions/download-artifact@v4
9696
with:
97-
name: ${{ env.ARTIFACT_NAME }}
97+
pattern: ${{ env.ARTIFACT_NAME }}-*
98+
merge-multiple: true
9899
path: ${{ env.DIST_DIR }}
99100

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

177178
create-release:
@@ -182,9 +183,10 @@ jobs:
182183

183184
steps:
184185
- name: Download artifact
185-
uses: actions/download-artifact@v3
186+
uses: actions/download-artifact@v4
186187
with:
187-
name: ${{ env.ARTIFACT_NAME }}
188+
pattern: ${{ env.ARTIFACT_NAME }}-*
189+
merge-multiple: true
188190
path: ${{ env.DIST_DIR }}
189191

190192
- name: Create checksum file

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:
@@ -74,13 +74,13 @@ jobs:
7474
file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/${{ matrix.filename }}
7575

7676
- name: Pass configuration files to next job via workflow artifact
77-
uses: actions/upload-artifact@v3
77+
uses: actions/upload-artifact@v4
7878
with:
7979
path: |
8080
*.yaml
8181
*.yml
8282
if-no-files-found: error
83-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
83+
name: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}${{ matrix.filename }}
8484

8585
sync:
8686
needs: download
@@ -114,16 +114,17 @@ jobs:
114114
- name: Checkout repository
115115
uses: actions/checkout@v4
116116

117-
- name: Download configuration files artifact
118-
uses: actions/download-artifact@v3
117+
- name: Download configuration file artifacts
118+
uses: actions/download-artifact@v4
119119
with:
120-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
120+
merge-multiple: true
121+
pattern: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}*
121122
path: ${{ env.CONFIGURATIONS_FOLDER }}
122123

123-
- name: Remove unneeded artifact
124-
uses: geekyeggo/delete-artifact@v2
124+
- name: Remove unneeded artifacts
125+
uses: geekyeggo/delete-artifact@v5
125126
with:
126-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
127+
name: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}*
127128

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

0 commit comments

Comments
 (0)