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 and rimashah25 committed Sep 27, 2024
1 parent 467abd1 commit 0726b45
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 37 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 @@ -88,7 +88,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 @@ -106,7 +106,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 @@ -141,7 +141,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 @@ -158,17 +158,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 @@ -101,7 +101,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 @@ -119,7 +119,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 @@ -137,7 +137,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 @@ -162,7 +162,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 @@ -210,7 +210,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 @@ -228,7 +228,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 @@ -246,7 +246,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 @@ -264,7 +264,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 @@ -282,7 +282,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 @@ -317,7 +317,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 @@ -348,15 +348,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 @@ -49,7 +49,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 @@ -82,7 +82,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 @@ -101,7 +101,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 @@ -136,7 +136,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 @@ -153,17 +153,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 @@ -105,13 +105,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 @@ -123,13 +123,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 @@ -200,13 +200,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 @@ -279,13 +279,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 @@ -165,7 +165,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
2 changes: 1 addition & 1 deletion .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
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 @@ -207,7 +207,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 0726b45

Please sign in to comment.