Skip to content

Commit d922717

Browse files
committed
Update actions/upload-artifact and actions/download-artifact to v4
Fixes message: This request has been automatically failed because it uses a deprecated version of `actions/upload-artifact: v2`. Learn more: https://github.blog/changelog/2024-02-13-deprecation-notice-v1-and-v2-of-the-artifact-actions/
1 parent f647d58 commit d922717

10 files changed

+38
-38
lines changed

.github/workflows/cache-config-tests.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
env:
8888
ATC_COMPONENT: ${{ github.job }}
8989
- name: Upload RPM
90-
uses: actions/upload-artifact@v2
90+
uses: actions/upload-artifact@v4
9191
with:
9292
name: ${{ github.job }}
9393
path: ${{ github.workspace }}/dist/${{ github.job }}-*.x86_64.rpm
@@ -105,7 +105,7 @@ jobs:
105105
env:
106106
ATC_COMPONENT: ${{ github.job }}
107107
- name: Upload RPM
108-
uses: actions/upload-artifact@v2
108+
uses: actions/upload-artifact@v4
109109
with:
110110
name: ${{ github.job }}
111111
path: ${{ github.workspace }}/dist/trafficcontrol-${{ github.job }}-*.x86_64.rpm
@@ -140,7 +140,7 @@ jobs:
140140
actual_rpm_name="$(ls dist | grep -E '^trafficserver-[0-9.]+-[0-9]+\.[0-9a-f]+.el${{ env.RHEL_VERSION }}.${{ env.TARGET_ARCH }}.rpm$')"
141141
[[ "${{ steps.repo-info.outputs.expected-rpm-name }}" == "$actual_rpm_name" ]]
142142
- name: Upload RPM
143-
uses: actions/upload-artifact@v2
143+
uses: actions/upload-artifact@v4
144144
with:
145145
name: ${{ github.job }}
146146
path: ${{ github.workspace }}/dist/${{ github.job }}-*.x86_64.rpm
@@ -157,17 +157,17 @@ jobs:
157157
- name: Checkout
158158
uses: actions/checkout@master
159159
- name: Download TO RPM
160-
uses: actions/download-artifact@v2
160+
uses: actions/download-artifact@v4
161161
with:
162162
name: traffic_ops
163163
path: ${{ github.workspace }}/cache-config/testing/docker/traffic_ops
164164
- name: Download Cache Config RPM
165-
uses: actions/download-artifact@v2
165+
uses: actions/download-artifact@v4
166166
with:
167167
name: cache-config
168168
path: ${{ github.workspace }}/cache-config/testing/docker/ort_test
169169
- name: Download ATS RPM
170-
uses: actions/download-artifact@v2
170+
uses: actions/download-artifact@v4
171171
with:
172172
name: trafficserver
173173
path: ${{ github.workspace }}/cache-config/testing/docker/yumserver/test-rpms

.github/workflows/ciab.yaml

+12-12
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
env:
101101
ATC_COMPONENT: ${{ github.job }}
102102
- name: Upload RPM
103-
uses: actions/upload-artifact@v2
103+
uses: actions/upload-artifact@v4
104104
with:
105105
name: ${{ github.job }}
106106
path: ${{ github.workspace }}/dist/${{ github.job }}-*.rpm
@@ -118,7 +118,7 @@ jobs:
118118
env:
119119
ATC_COMPONENT: ${{ github.job }}
120120
- name: Upload RPM
121-
uses: actions/upload-artifact@v2
121+
uses: actions/upload-artifact@v4
122122
with:
123123
name: ${{ github.job }}
124124
path: ${{ github.workspace }}/dist/${{ github.job }}-*.rpm
@@ -136,7 +136,7 @@ jobs:
136136
env:
137137
ATC_COMPONENT: ${{ github.job }}
138138
- name: Upload RPM
139-
uses: actions/upload-artifact@v2
139+
uses: actions/upload-artifact@v4
140140
with:
141141
name: ${{ github.job }}
142142
path: ${{ github.workspace }}/dist/trafficcontrol-${{ github.job }}-*.rpm
@@ -161,7 +161,7 @@ jobs:
161161
env:
162162
ATC_COMPONENT: ${{ github.job }}
163163
- name: Upload RPM
164-
uses: actions/upload-artifact@v2
164+
uses: actions/upload-artifact@v4
165165
with:
166166
name: ${{ github.job }}
167167
path: ${{ github.workspace }}/dist/${{ github.job }}-*.rpm
@@ -186,7 +186,7 @@ jobs:
186186
env:
187187
ATC_COMPONENT: ${{ github.job }}
188188
- name: Upload RPM
189-
uses: actions/upload-artifact@v2
189+
uses: actions/upload-artifact@v4
190190
with:
191191
name: ${{ github.job }}
192192
path: ${{ github.workspace }}/dist/*.rpm
@@ -204,7 +204,7 @@ jobs:
204204
env:
205205
ATC_COMPONENT: ${{ github.job }}
206206
- name: Upload RPM
207-
uses: actions/upload-artifact@v2
207+
uses: actions/upload-artifact@v4
208208
with:
209209
name: ${{ github.job }}
210210
path: ${{ github.workspace }}/dist/${{ github.job }}-*.rpm
@@ -222,7 +222,7 @@ jobs:
222222
env:
223223
ATC_COMPONENT: ${{ github.job }}
224224
- name: Upload RPM
225-
uses: actions/upload-artifact@v2
225+
uses: actions/upload-artifact@v4
226226
with:
227227
name: ${{ github.job }}
228228
path: ${{ github.workspace }}/dist/${{ github.job }}-*.rpm
@@ -240,7 +240,7 @@ jobs:
240240
env:
241241
ATC_COMPONENT: ${{ github.job }}
242242
- name: Upload RPM
243-
uses: actions/upload-artifact@v2
243+
uses: actions/upload-artifact@v4
244244
with:
245245
name: ${{ github.job }}
246246
path: ${{ github.workspace }}/dist/${{ github.job }}-*.rpm
@@ -258,7 +258,7 @@ jobs:
258258
env:
259259
ATC_COMPONENT: ${{ github.job }}
260260
- name: Upload RPM
261-
uses: actions/upload-artifact@v2
261+
uses: actions/upload-artifact@v4
262262
with:
263263
name: ${{ github.job }}
264264
path: ${{ github.workspace }}/dist/${{ github.job }}-*.rpm
@@ -293,7 +293,7 @@ jobs:
293293
actual_rpm_name="$(ls dist | grep -E '^trafficserver-[0-9.]+-[0-9]+\.[0-9a-f]+.el${{ env.RHEL_VERSION }}.${{ env.TARGET_ARCH }}.rpm$')"
294294
[[ "${{ steps.repo-info.outputs.expected-rpm-name }}" == "$actual_rpm_name" ]]
295295
- name: Upload RPM
296-
uses: actions/upload-artifact@v2
296+
uses: actions/upload-artifact@v4
297297
with:
298298
name: ${{ github.job }}
299299
path: ${{ github.workspace }}/dist/${{ github.job }}-*.x86_64.rpm
@@ -323,15 +323,15 @@ jobs:
323323
- name: Import cached Alpine Docker image
324324
run: .github/actions/save-alpine-tar/entrypoint.sh load ${{ env.ALPINE_VERSION }}
325325
- name: Download RPMs
326-
uses: actions/download-artifact@v2
326+
uses: actions/download-artifact@v4
327327
with:
328328
path: ${{ github.workspace }}/dist/
329329
- name: Build CDN-in-a-Box images
330330
uses: ./.github/actions/build-ciab
331331
- name: Start CDN-in-a-Box
332332
uses: ./.github/actions/run-ciab
333333
- name: Upload CDN-in-a-Box logs
334-
uses: actions/upload-artifact@v2
334+
uses: actions/upload-artifact@v4
335335
with:
336336
name: ciab-logs
337337
path: infrastructure/cdn-in-a-box/logs/*.log

.github/workflows/docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
with:
4949
docs-folder: "docs/"
5050
pre-build-command: "apt-get install -y pandoc"
51-
- uses: actions/upload-artifact@v1
51+
- uses: actions/upload-artifact@v4
5252
with:
5353
name: HTMLDocumentation
5454
path: docs/build/html/

.github/workflows/health-client-tests.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
env:
8282
ATC_COMPONENT: ${{ github.job }}
8383
- name: Upload RPM
84-
uses: actions/upload-artifact@v2
84+
uses: actions/upload-artifact@v4
8585
with:
8686
name: ${{ github.job }}
8787
path: ${{ github.workspace }}/dist/${{ github.job }}-*.x86_64.rpm
@@ -100,7 +100,7 @@ jobs:
100100
NO_SOURCE: 1
101101
ATC_COMPONENT: ${{ github.job }}
102102
- name: Upload RPM
103-
uses: actions/upload-artifact@v2
103+
uses: actions/upload-artifact@v4
104104
with:
105105
name: ${{ github.job }}
106106
path: ${{ github.workspace }}/dist/trafficcontrol-health-client-*.x86_64.rpm
@@ -135,7 +135,7 @@ jobs:
135135
actual_rpm_name="$(ls dist | grep -E '^trafficserver-[0-9.]+-[0-9]+\.[0-9a-f]+.el${{ env.RHEL_VERSION }}.${{ env.TARGET_ARCH }}.rpm$')"
136136
[[ "${{ steps.repo-info.outputs.expected-rpm-name }}" == "$actual_rpm_name" ]]
137137
- name: Upload RPM
138-
uses: actions/upload-artifact@v2
138+
uses: actions/upload-artifact@v4
139139
with:
140140
name: ${{ github.job }}
141141
path: ${{ github.workspace }}/dist/${{ github.job }}-*.x86_64.rpm
@@ -152,17 +152,17 @@ jobs:
152152
- name: Checkout
153153
uses: actions/checkout@master
154154
- name: Download TO RPM
155-
uses: actions/download-artifact@v2
155+
uses: actions/download-artifact@v4
156156
with:
157157
name: traffic_ops
158158
path: ${{ github.workspace }}/tc-health-client/testing/docker/traffic_ops
159159
- name: Download Health Client RPM
160-
uses: actions/download-artifact@v2
160+
uses: actions/download-artifact@v4
161161
with:
162162
name: tc-health-client
163163
path: ${{ github.workspace }}/tc-health-client/testing/docker/health-check-test
164164
- name: Download ATS RPM
165-
uses: actions/download-artifact@v2
165+
uses: actions/download-artifact@v4
166166
with:
167167
name: trafficserver
168168
path: ${{ github.workspace }}/tc-health-client/testing/docker/health-check-test

.github/workflows/to.api.contract.tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ jobs:
104104
version: 4
105105
- name: Upload Vault logs
106106
if: ${{ steps.v4Tests.outcome != 'success' && always() }}
107-
uses: actions/upload-artifact@v2
107+
uses: actions/upload-artifact@v4
108108
with:
109109
name: v4 Traffic Vault logs
110110
path: ${{ github.workspace }}/infrastructure/cdn-in-a-box/traffic.vault.logs
111111
- name: Upload Ops logs
112112
if: ${{ steps.v4Tests.outcome != 'success' && always() }}
113-
uses: actions/upload-artifact@v2
113+
uses: actions/upload-artifact@v4
114114
with:
115115
name: v4 Traffic Ops logs
116116
path: ${{ github.workspace }}/traffic_ops/traffic_ops_golang/traffic.ops.log

.github/workflows/to.integration.tests.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ jobs:
122122
flags: traffic_ops_integration,v3
123123
- name: Upload v3 Vault logs
124124
if: ${{ steps.v3Tests.outcome != 'success' && always() }}
125-
uses: actions/upload-artifact@v2
125+
uses: actions/upload-artifact@v4
126126
with:
127127
name: v3 Traffic Vault logs
128128
path: ${{ github.workspace }}/infrastructure/cdn-in-a-box/traffic.vault.logs
129129
- name: Upload v3 Ops logs
130130
if: ${{ steps.v3Tests.outcome != 'success' && always() }}
131-
uses: actions/upload-artifact@v2
131+
uses: actions/upload-artifact@v4
132132
with:
133133
name: v3 Traffic Ops logs
134134
path: ${{ github.workspace }}/traffic_ops/traffic_ops_golang/traffic.ops.log
@@ -199,13 +199,13 @@ jobs:
199199
flags: traffic_ops_integration,v4
200200
- name: Upload v4 Vault logs
201201
if: ${{ steps.v4Tests.outcome != 'success' && always() }}
202-
uses: actions/upload-artifact@v2
202+
uses: actions/upload-artifact@v4
203203
with:
204204
name: v4 Traffic Vault logs
205205
path: ${{ github.workspace }}/infrastructure/cdn-in-a-box/traffic.vault.logs
206206
- name: Upload v4 Ops logs
207207
if: ${{ steps.v4Tests.outcome != 'success' && always() }}
208-
uses: actions/upload-artifact@v2
208+
uses: actions/upload-artifact@v4
209209
with:
210210
name: v4 Traffic Ops logs
211211
path: ${{ github.workspace }}/traffic_ops/traffic_ops_golang/traffic.ops.log
@@ -278,13 +278,13 @@ jobs:
278278
flags: traffic_ops_integration,v5
279279
- name: Upload v5 Vault logs
280280
if: ${{ steps.v5Tests.outcome != 'success' && always() }}
281-
uses: actions/upload-artifact@v2
281+
uses: actions/upload-artifact@v4
282282
with:
283283
name: v5 Traffic Vault logs
284284
path: ${{ github.workspace }}/infrastructure/cdn-in-a-box/traffic.vault.logs
285285
- name: Upload v5 Ops logs
286286
if: ${{ steps.v5Tests.outcome != 'success' && always() }}
287-
uses: actions/upload-artifact@v2
287+
uses: actions/upload-artifact@v4
288288
with:
289289
name: v5 Traffic Ops logs
290290
path: ${{ github.workspace }}/traffic_ops/traffic_ops_golang/traffic.ops.log

.github/workflows/tp.integration.tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ jobs:
164164
with:
165165
smtp_address: 172.17.0.1
166166
- name: Upload Report
167-
uses: actions/upload-artifact@v2
167+
uses: actions/upload-artifact@v4
168168
if: always()
169169
with:
170170
name: ${{ github.job }}

.github/workflows/tpv2.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ jobs:
261261
- name: Run everything and test
262262
uses: ./.github/actions/tpv2-integration-tests
263263
- name: Upload Report
264-
uses: actions/upload-artifact@v3
264+
uses: actions/upload-artifact@v4
265265
if: always()
266266
with:
267267
name: ${{ github.job }}
@@ -294,7 +294,7 @@ jobs:
294294
env:
295295
ATC_COMPONENT: traffic_portal_v2
296296
- name: Upload RPM
297-
uses: actions/upload-artifact@v2
297+
uses: actions/upload-artifact@v4
298298
with:
299299
name: ${{ github.job }}
300300
path: ${{ github.workspace }}/dist/${{ github.job }}-*.rpm

.github/workflows/tr-ultimate-test-harness.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ jobs:
206206
done
207207
if: ${{ failure() }}
208208
- name: Upload Dev CDN-in-a-Box logs
209-
uses: actions/upload-artifact@v2
209+
uses: actions/upload-artifact@v4
210210
with:
211211
name: dev-ciab-logs
212212
path: dev/logs/*.log

.github/workflows/tr.tests.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
files: core/target/site/jacoco-aggregate/jacoco.xml
6767
flags: traffic_router_unit
6868
- name: Upload Surefire and Failsafe Reports
69-
uses: actions/upload-artifact@v3
69+
uses: actions/upload-artifact@v4
7070
if: ${{ failure() }}
7171
with:
7272
name: junit-reports

0 commit comments

Comments
 (0)