Skip to content

Commit

Permalink
Update actions/upload-artifact and actions/download-artifact to v4 (#…
Browse files Browse the repository at this point in the history
…8081)

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/
  • Loading branch information
zrhoffman authored Sep 27, 2024
1 parent f647d58 commit b7c576a
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 38 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/cache-config-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
env:
ATC_COMPONENT: ${{ github.job }}
- name: Upload RPM
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}
path: ${{ github.workspace }}/dist/${{ github.job }}-*.x86_64.rpm
Expand All @@ -105,7 +105,7 @@ jobs:
env:
ATC_COMPONENT: ${{ github.job }}
- name: Upload RPM
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}
path: ${{ github.workspace }}/dist/trafficcontrol-${{ github.job }}-*.x86_64.rpm
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
actual_rpm_name="$(ls dist | grep -E '^trafficserver-[0-9.]+-[0-9]+\.[0-9a-f]+.el${{ env.RHEL_VERSION }}.${{ env.TARGET_ARCH }}.rpm$')"
[[ "${{ steps.repo-info.outputs.expected-rpm-name }}" == "$actual_rpm_name" ]]
- name: Upload RPM
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}
path: ${{ github.workspace }}/dist/${{ github.job }}-*.x86_64.rpm
Expand All @@ -157,17 +157,17 @@ jobs:
- name: Checkout
uses: actions/checkout@master
- name: Download TO RPM
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: traffic_ops
path: ${{ github.workspace }}/cache-config/testing/docker/traffic_ops
- name: Download Cache Config RPM
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: cache-config
path: ${{ github.workspace }}/cache-config/testing/docker/ort_test
- name: Download ATS RPM
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: trafficserver
path: ${{ github.workspace }}/cache-config/testing/docker/yumserver/test-rpms
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/ciab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
env:
ATC_COMPONENT: ${{ github.job }}
- name: Upload RPM
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}
path: ${{ github.workspace }}/dist/${{ github.job }}-*.rpm
Expand All @@ -118,7 +118,7 @@ jobs:
env:
ATC_COMPONENT: ${{ github.job }}
- name: Upload RPM
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}
path: ${{ github.workspace }}/dist/${{ github.job }}-*.rpm
Expand All @@ -136,7 +136,7 @@ jobs:
env:
ATC_COMPONENT: ${{ github.job }}
- name: Upload RPM
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}
path: ${{ github.workspace }}/dist/trafficcontrol-${{ github.job }}-*.rpm
Expand All @@ -161,7 +161,7 @@ jobs:
env:
ATC_COMPONENT: ${{ github.job }}
- name: Upload RPM
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}
path: ${{ github.workspace }}/dist/${{ github.job }}-*.rpm
Expand All @@ -186,7 +186,7 @@ jobs:
env:
ATC_COMPONENT: ${{ github.job }}
- name: Upload RPM
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}
path: ${{ github.workspace }}/dist/*.rpm
Expand All @@ -204,7 +204,7 @@ jobs:
env:
ATC_COMPONENT: ${{ github.job }}
- name: Upload RPM
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}
path: ${{ github.workspace }}/dist/${{ github.job }}-*.rpm
Expand All @@ -222,7 +222,7 @@ jobs:
env:
ATC_COMPONENT: ${{ github.job }}
- name: Upload RPM
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}
path: ${{ github.workspace }}/dist/${{ github.job }}-*.rpm
Expand All @@ -240,7 +240,7 @@ jobs:
env:
ATC_COMPONENT: ${{ github.job }}
- name: Upload RPM
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}
path: ${{ github.workspace }}/dist/${{ github.job }}-*.rpm
Expand All @@ -258,7 +258,7 @@ jobs:
env:
ATC_COMPONENT: ${{ github.job }}
- name: Upload RPM
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}
path: ${{ github.workspace }}/dist/${{ github.job }}-*.rpm
Expand Down Expand Up @@ -293,7 +293,7 @@ jobs:
actual_rpm_name="$(ls dist | grep -E '^trafficserver-[0-9.]+-[0-9]+\.[0-9a-f]+.el${{ env.RHEL_VERSION }}.${{ env.TARGET_ARCH }}.rpm$')"
[[ "${{ steps.repo-info.outputs.expected-rpm-name }}" == "$actual_rpm_name" ]]
- name: Upload RPM
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}
path: ${{ github.workspace }}/dist/${{ github.job }}-*.x86_64.rpm
Expand Down Expand Up @@ -323,15 +323,15 @@ jobs:
- name: Import cached Alpine Docker image
run: .github/actions/save-alpine-tar/entrypoint.sh load ${{ env.ALPINE_VERSION }}
- name: Download RPMs
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
path: ${{ github.workspace }}/dist/
- name: Build CDN-in-a-Box images
uses: ./.github/actions/build-ciab
- name: Start CDN-in-a-Box
uses: ./.github/actions/run-ciab
- name: Upload CDN-in-a-Box logs
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ciab-logs
path: infrastructure/cdn-in-a-box/logs/*.log
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
with:
docs-folder: "docs/"
pre-build-command: "apt-get install -y pandoc"
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
with:
name: HTMLDocumentation
path: docs/build/html/
12 changes: 6 additions & 6 deletions .github/workflows/health-client-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
env:
ATC_COMPONENT: ${{ github.job }}
- name: Upload RPM
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}
path: ${{ github.workspace }}/dist/${{ github.job }}-*.x86_64.rpm
Expand All @@ -100,7 +100,7 @@ jobs:
NO_SOURCE: 1
ATC_COMPONENT: ${{ github.job }}
- name: Upload RPM
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}
path: ${{ github.workspace }}/dist/trafficcontrol-health-client-*.x86_64.rpm
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
actual_rpm_name="$(ls dist | grep -E '^trafficserver-[0-9.]+-[0-9]+\.[0-9a-f]+.el${{ env.RHEL_VERSION }}.${{ env.TARGET_ARCH }}.rpm$')"
[[ "${{ steps.repo-info.outputs.expected-rpm-name }}" == "$actual_rpm_name" ]]
- name: Upload RPM
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}
path: ${{ github.workspace }}/dist/${{ github.job }}-*.x86_64.rpm
Expand All @@ -152,17 +152,17 @@ jobs:
- name: Checkout
uses: actions/checkout@master
- name: Download TO RPM
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: traffic_ops
path: ${{ github.workspace }}/tc-health-client/testing/docker/traffic_ops
- name: Download Health Client RPM
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: tc-health-client
path: ${{ github.workspace }}/tc-health-client/testing/docker/health-check-test
- name: Download ATS RPM
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: trafficserver
path: ${{ github.workspace }}/tc-health-client/testing/docker/health-check-test
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/to.api.contract.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ jobs:
version: 4
- name: Upload Vault logs
if: ${{ steps.v4Tests.outcome != 'success' && always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: v4 Traffic Vault logs
path: ${{ github.workspace }}/infrastructure/cdn-in-a-box/traffic.vault.logs
- name: Upload Ops logs
if: ${{ steps.v4Tests.outcome != 'success' && always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: v4 Traffic Ops logs
path: ${{ github.workspace }}/traffic_ops/traffic_ops_golang/traffic.ops.log
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/to.integration.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ jobs:
flags: traffic_ops_integration,v3
- name: Upload v3 Vault logs
if: ${{ steps.v3Tests.outcome != 'success' && always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: v3 Traffic Vault logs
path: ${{ github.workspace }}/infrastructure/cdn-in-a-box/traffic.vault.logs
- name: Upload v3 Ops logs
if: ${{ steps.v3Tests.outcome != 'success' && always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: v3 Traffic Ops logs
path: ${{ github.workspace }}/traffic_ops/traffic_ops_golang/traffic.ops.log
Expand Down Expand Up @@ -199,13 +199,13 @@ jobs:
flags: traffic_ops_integration,v4
- name: Upload v4 Vault logs
if: ${{ steps.v4Tests.outcome != 'success' && always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: v4 Traffic Vault logs
path: ${{ github.workspace }}/infrastructure/cdn-in-a-box/traffic.vault.logs
- name: Upload v4 Ops logs
if: ${{ steps.v4Tests.outcome != 'success' && always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: v4 Traffic Ops logs
path: ${{ github.workspace }}/traffic_ops/traffic_ops_golang/traffic.ops.log
Expand Down Expand Up @@ -278,13 +278,13 @@ jobs:
flags: traffic_ops_integration,v5
- name: Upload v5 Vault logs
if: ${{ steps.v5Tests.outcome != 'success' && always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: v5 Traffic Vault logs
path: ${{ github.workspace }}/infrastructure/cdn-in-a-box/traffic.vault.logs
- name: Upload v5 Ops logs
if: ${{ steps.v5Tests.outcome != 'success' && always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: v5 Traffic Ops logs
path: ${{ github.workspace }}/traffic_ops/traffic_ops_golang/traffic.ops.log
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tp.integration.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ jobs:
with:
smtp_address: 172.17.0.1
- name: Upload Report
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ github.job }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tpv2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ jobs:
- name: Run everything and test
uses: ./.github/actions/tpv2-integration-tests
- name: Upload Report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ github.job }}
Expand Down Expand Up @@ -294,7 +294,7 @@ jobs:
env:
ATC_COMPONENT: traffic_portal_v2
- name: Upload RPM
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}
path: ${{ github.workspace }}/dist/${{ github.job }}-*.rpm
2 changes: 1 addition & 1 deletion .github/workflows/tr-ultimate-test-harness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ jobs:
done
if: ${{ failure() }}
- name: Upload Dev CDN-in-a-Box logs
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: dev-ciab-logs
path: dev/logs/*.log
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tr.tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
files: core/target/site/jacoco-aggregate/jacoco.xml
flags: traffic_router_unit
- name: Upload Surefire and Failsafe Reports
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: junit-reports
Expand Down

0 comments on commit b7c576a

Please sign in to comment.