Skip to content

Commit ef5123d

Browse files
authored
Update actions/upload-artifact and actions/download-artifact together (#680)
Bump them up from v3 to v4. Also try to configure Dependabot to update them as a group in the future. Signed-off-by: Yun-Tang Hsu <[email protected]>
1 parent 77ef924 commit ef5123d

File tree

4 files changed

+27
-22
lines changed

4 files changed

+27
-22
lines changed

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,8 @@ updates:
4949
schedule:
5050
interval: "daily"
5151
open-pull-requests-limit: 5
52+
groups:
53+
artifact-actions:
54+
patterns:
55+
- "actions/upload-artifact"
56+
- "actions/download-artifact"

.github/workflows/golicense.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
./ci/golicense/run.sh ./theia-bins ./license-reports
6262
- name: Upload licensing information
6363
if: ${{ always() }}
64-
uses: actions/upload-artifact@v3
64+
uses: actions/upload-artifact@v4
6565
with:
6666
name: licenses.deps
6767
path: license-reports/ALL.deps.txt

.github/workflows/kind.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Save Spark jobs image to tarball
4141
run: docker save -o spark-jobs.tar antrea/theia-spark-jobs
4242
- name: Upload Spark jobs image for subsequent jobs
43-
uses: actions/upload-artifact@v3
43+
uses: actions/upload-artifact@v4
4444
with:
4545
name: spark-jobs
4646
path: spark-jobs.tar
@@ -57,7 +57,7 @@ jobs:
5757
- name: Save ClickHouse monitor image to tarball
5858
run: docker save -o clickhouse-monitor.tar antrea/theia-clickhouse-monitor
5959
- name: Upload ClickHouse monitor image for subsequent jobs
60-
uses: actions/upload-artifact@v3
60+
uses: actions/upload-artifact@v4
6161
with:
6262
name: clickhouse-monitor
6363
path: clickhouse-monitor.tar
@@ -74,7 +74,7 @@ jobs:
7474
- name: Save ClickHouse server image to tarball
7575
run: docker save -o clickhouse-server.tar antrea/theia-clickhouse-server
7676
- name: Upload ClickHouse server image for subsequent jobs
77-
uses: actions/upload-artifact@v3
77+
uses: actions/upload-artifact@v4
7878
with:
7979
name: clickhouse-server
8080
path: clickhouse-server.tar
@@ -91,7 +91,7 @@ jobs:
9191
- name: Save Theia Manager image to tarball
9292
run: docker save -o theia-manager.tar antrea/theia-manager
9393
- name: Upload Theia Manager image for subsequent jobs
94-
uses: actions/upload-artifact@v3
94+
uses: actions/upload-artifact@v4
9595
with:
9696
name: theia-manager
9797
path: theia-manager.tar
@@ -122,19 +122,19 @@ jobs:
122122
with:
123123
go-version-file: 'go.mod'
124124
- name: Download Spark jobs images from previous jobs
125-
uses: actions/download-artifact@v3
125+
uses: actions/download-artifact@v4
126126
with:
127127
name: spark-jobs
128128
- name: Download ClickHouse monitor images from previous jobs
129-
uses: actions/download-artifact@v3
129+
uses: actions/download-artifact@v4
130130
with:
131131
name: clickhouse-monitor
132132
- name: Download ClickHouse server images from previous jobs
133-
uses: actions/download-artifact@v3
133+
uses: actions/download-artifact@v4
134134
with:
135135
name: clickhouse-server
136136
- name: Download Theia Manager images from previous jobs
137-
uses: actions/download-artifact@v3
137+
uses: actions/download-artifact@v4
138138
with:
139139
name: theia-manager
140140
- name: Load Theia image
@@ -174,7 +174,7 @@ jobs:
174174
flags: kind-e2e-tests
175175
name: codecov-kind-e2e-test
176176
- name: Upload test log
177-
uses: actions/upload-artifact@v3
177+
uses: actions/upload-artifact@v4
178178
if: ${{ failure() }}
179179
with:
180180
name: e2e-kind-fa.tar.gz
@@ -204,11 +204,11 @@ jobs:
204204
with:
205205
go-version-file: 'go.mod'
206206
- name: Download ClickHouse monitor images from previous jobs
207-
uses: actions/download-artifact@v3
207+
uses: actions/download-artifact@v4
208208
with:
209209
name: clickhouse-monitor
210210
- name: Download ClickHouse server images from previous jobs
211-
uses: actions/download-artifact@v3
211+
uses: actions/download-artifact@v4
212212
with:
213213
name: clickhouse-server
214214
- name: Load Theia image
@@ -242,7 +242,7 @@ jobs:
242242
flags: kind-multi-cluster-e2e-tests
243243
name: codecov-multi-cluster-kind-e2e-test
244244
- name: Upload test log
245-
uses: actions/upload-artifact@v3
245+
uses: actions/upload-artifact@v4
246246
if: ${{ failure() }}
247247
with:
248248
name: e2e-kind-multi-cluster.tar.gz
@@ -277,19 +277,19 @@ jobs:
277277
with:
278278
go-version-file: 'go.mod'
279279
- name: Download Spark jobs images from previous jobs
280-
uses: actions/download-artifact@v3
280+
uses: actions/download-artifact@v4
281281
with:
282282
name: spark-jobs
283283
- name: Download ClickHouse monitor images from previous jobs
284-
uses: actions/download-artifact@v3
284+
uses: actions/download-artifact@v4
285285
with:
286286
name: clickhouse-monitor
287287
- name: Download ClickHouse server images from previous jobs
288-
uses: actions/download-artifact@v3
288+
uses: actions/download-artifact@v4
289289
with:
290290
name: clickhouse-server
291291
- name: Download Theia Manager images from previous jobs
292-
uses: actions/download-artifact@v3
292+
uses: actions/download-artifact@v4
293293
with:
294294
name: theia-manager
295295
- name: Load Theia image
@@ -321,7 +321,7 @@ jobs:
321321
if: ${{ failure() }}
322322
run: tar -czf log.tar.gz log
323323
- name: Upload test log
324-
uses: actions/upload-artifact@v3
324+
uses: actions/upload-artifact@v4
325325
if: ${{ failure() }}
326326
with:
327327
name: upgrade-from-theia-version-n-1.tar.gz
@@ -353,11 +353,11 @@ jobs:
353353
with:
354354
go-version-file: 'go.mod'
355355
- name: Download ClickHouse monitor images from previous jobs
356-
uses: actions/download-artifact@v3
356+
uses: actions/download-artifact@v4
357357
with:
358358
name: clickhouse-monitor
359359
- name: Download ClickHouse server images from previous jobs
360-
uses: actions/download-artifact@v3
360+
uses: actions/download-artifact@v4
361361
with:
362362
name: clickhouse-server
363363
- name: Load Theia clickhouse images
@@ -383,7 +383,7 @@ jobs:
383383
if: ${{ failure() }}
384384
run: tar -czf log.tar.gz log
385385
- name: Upload test log
386-
uses: actions/upload-artifact@v3
386+
uses: actions/upload-artifact@v4
387387
if: ${{ failure() }}
388388
with:
389389
name: migrate-clickhouse-from-theia-version-n-1.tar.gz

.github/workflows/trivy_scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
format: 'table'
6262
output: 'trivy.${{ matrix.image }}.${{ matrix.version }}.txt'
6363
- name: Upload Trivy scan report
64-
uses: actions/upload-artifact@v3
64+
uses: actions/upload-artifact@v4
6565
with:
6666
name: trivy-scan-reports
6767
path: trivy.*.txt

0 commit comments

Comments
 (0)