From 417a6455b3a482abff68309ca169e610c1868408 Mon Sep 17 00:00:00 2001 From: Cyclinder Kuo Date: Wed, 25 Dec 2024 16:53:16 +0800 Subject: [PATCH] Github Action: Fix fail to download artifact Signed-off-by: Cyclinder Kuo --- .github/workflows/auto-upgrade-ci.yaml | 8 ++++---- .github/workflows/auto-version-release.yaml | 4 ++-- .github/workflows/build-image-base.yaml | 2 +- .github/workflows/build-image-ci.yaml | 4 ++-- .github/workflows/build-image-plugins.yaml | 2 +- .github/workflows/call-release-changelog.yaml | 2 +- .github/workflows/call-release-chart.yaml | 2 +- .github/workflows/call-release-doc.yaml | 2 +- .github/workflows/call-update-githubpages.yaml | 4 ++-- .github/workflows/e2e-init.yaml | 4 ++-- .github/workflows/trivy-scan-image.yaml | 4 ++-- 11 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/auto-upgrade-ci.yaml b/.github/workflows/auto-upgrade-ci.yaml index 6f9ee68c09..f788bb35e0 100644 --- a/.github/workflows/auto-upgrade-ci.yaml +++ b/.github/workflows/auto-upgrade-ci.yaml @@ -210,14 +210,14 @@ jobs: - name: Download old spiderpool-agent image with tag ${{ needs.call_build_old_ci_image.outputs.imageTag }} if: ${{ needs.get_ref.outputs.build_old_image_tag == 'true' }} - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: old-image-tar-spiderpool-agent path: test/.download - name: Download old spiderpool-controller image with tag ${{ needs.call_build_old_ci_image.outputs.imageTag }} if: ${{ needs.get_ref.outputs.build_old_image_tag == 'true' }} - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: old-image-tar-spiderpool-controller path: test/.download @@ -304,13 +304,13 @@ jobs: cp -r /tmp/config ${{ env.KUBECONFIG_PATH }}/${{ env.E2E_CLUSTER_NAME }}/.kube/config - name: Download new spiderpool-agent image with tag ${{ needs.call_build_new_ci_image.outputs.imageTag }} - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: new-image-tar-spiderpool-agent path: test/.download - name: Download new spiderpool-controller image with tag ${{ needs.call_build_new_ci_image.outputs.imageTag }} - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: new-image-tar-spiderpool-controller path: test/.download diff --git a/.github/workflows/auto-version-release.yaml b/.github/workflows/auto-version-release.yaml index 5b36e6fe8c..43beb74915 100644 --- a/.github/workflows/auto-version-release.yaml +++ b/.github/workflows/auto-version-release.yaml @@ -137,13 +137,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Download Chart Artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: ${{ needs.release-chart.outputs.artifact }} path: chart-package/ - name: Download Changelog Artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: ${{ needs.release-changelog.outputs.artifact }} path: changelog-result/ diff --git a/.github/workflows/build-image-base.yaml b/.github/workflows/build-image-base.yaml index da9dff6e08..67d64bd20e 100644 --- a/.github/workflows/build-image-base.yaml +++ b/.github/workflows/build-image-base.yaml @@ -148,7 +148,7 @@ jobs: mkdir -p image-digest/ - name: Download digests of all images built - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: path: image-digest/ diff --git a/.github/workflows/build-image-ci.yaml b/.github/workflows/build-image-ci.yaml index b013b2bf40..d13c60b86b 100644 --- a/.github/workflows/build-image-ci.yaml +++ b/.github/workflows/build-image-ci.yaml @@ -301,13 +301,13 @@ jobs: mkdir -p image-digest/ - name: Download digests of all images built - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: path: image-digest/ name: image-digest-spiderpool-agent - name: Download digests of all images built - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: path: image-digest/ name: image-digest-spiderpool-controller diff --git a/.github/workflows/build-image-plugins.yaml b/.github/workflows/build-image-plugins.yaml index 97fc553287..ee40c06a34 100644 --- a/.github/workflows/build-image-plugins.yaml +++ b/.github/workflows/build-image-plugins.yaml @@ -148,7 +148,7 @@ jobs: mkdir -p image-digest/ - name: Download digests of all images built - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: path: image-digest/ diff --git a/.github/workflows/call-release-changelog.yaml b/.github/workflows/call-release-changelog.yaml index 3190ed7549..340d04b09c 100644 --- a/.github/workflows/call-release-changelog.yaml +++ b/.github/workflows/call-release-changelog.yaml @@ -126,7 +126,7 @@ jobs: ref: ${{ env.DEST_BRANCH }} - name: Download Artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: changelog_artifact path: ${{ env.DEST_DIRECTORY }} diff --git a/.github/workflows/call-release-chart.yaml b/.github/workflows/call-release-chart.yaml index 2757f13d64..13d3cb193b 100644 --- a/.github/workflows/call-release-chart.yaml +++ b/.github/workflows/call-release-chart.yaml @@ -115,7 +115,7 @@ jobs: persist-credentials: "true" - name: Download Artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: chart_package_artifact path: charts/ diff --git a/.github/workflows/call-release-doc.yaml b/.github/workflows/call-release-doc.yaml index e198de5b9e..6ae62a85d7 100644 --- a/.github/workflows/call-release-doc.yaml +++ b/.github/workflows/call-release-doc.yaml @@ -152,7 +152,7 @@ jobs: fetch-depth: 0 - name: Download Artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: website_package_artifact diff --git a/.github/workflows/call-update-githubpages.yaml b/.github/workflows/call-update-githubpages.yaml index 8d0793dfc6..5997700d46 100644 --- a/.github/workflows/call-update-githubpages.yaml +++ b/.github/workflows/call-update-githubpages.yaml @@ -45,13 +45,13 @@ jobs: mkdir ${{ env.DEST_DIRECTORY }}/charts - name: Download Website Artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: ${{ inputs.site_artifact_name }} path: ${{ env.DEST_DIRECTORY }} - name: Download Chart Artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: ${{ inputs.chart_artifact_name }} path: ${{ env.DEST_DIRECTORY }}/charts diff --git a/.github/workflows/e2e-init.yaml b/.github/workflows/e2e-init.yaml index 548a469282..b3fee08f13 100644 --- a/.github/workflows/e2e-init.yaml +++ b/.github/workflows/e2e-init.yaml @@ -104,13 +104,13 @@ jobs: bash ./test/scripts/install-tools.sh - name: Download spiderpool-agent image - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: image-tar-spiderpool-agent path: test/.download - name: Download spiderpool-controller image - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: image-tar-spiderpool-controller path: test/.download diff --git a/.github/workflows/trivy-scan-image.yaml b/.github/workflows/trivy-scan-image.yaml index 3e781d3929..ef5d62ebe5 100644 --- a/.github/workflows/trivy-scan-image.yaml +++ b/.github/workflows/trivy-scan-image.yaml @@ -24,13 +24,13 @@ jobs: ref: ${{ inputs.ref }} - name: Download spiderpool-agent image - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: image-tar-spiderpool-agent path: test/.download - name: Download spiderpool-controller image - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: image-tar-spiderpool-controller path: test/.download