Skip to content

Commit

Permalink
Merge pull request spidernet-io#3687 from spidernet-io/fix/upload-and…
Browse files Browse the repository at this point in the history
…-download-file

Revert build(deps): bump actions/download-artifact and actions/upload-artifact from 3 to 4
  • Loading branch information
weizhoublue authored Jul 4, 2024
2 parents d5d9976 + f1a9ccb commit 0cdac43
Show file tree
Hide file tree
Showing 15 changed files with 36 additions and 36 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/auto-upgrade-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,14 +227,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@v4
uses: actions/download-artifact@v3
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@v4
uses: actions/download-artifact@v3
with:
name: old-image-tar-spiderpool-controller
path: test/.download
Expand Down Expand Up @@ -308,13 +308,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@v4
uses: actions/download-artifact@v3
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@v4
uses: actions/download-artifact@v3
with:
name: new-image-tar-spiderpool-controller
path: test/.download
Expand Down Expand Up @@ -367,15 +367,15 @@ jobs:
- name: Upload e2e log
if: ${{ needs.get_ref.outputs.e2e_enabled == 'true' }}
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v3.1.3
with:
name: ${{ needs.get_ref.outputs.old_version }}-to-${{ needs.get_ref.outputs.new_version }}-debuglog.txt
path: test/e2edebugLog.txt
retention-days: 7

- name: Upload e2e report
if: ${{ env.UPLOAD_E2E_REPORT == 'true' }}
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v3.1.3
with:
name: ${{ needs.get_ref.outputs.old_version }}-to-${{ needs.get_ref.outputs.new_version }}-e2ereport.json
path: e2ereport.json
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/auto-version-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download Chart Artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: ${{ needs.release-chart.outputs.artifact }}
path: chart-package/

- name: Download Changelog Artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: ${{ needs.release-changelog.outputs.artifact }}
path: changelog-result/
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-image-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
- name: Upload artifact digests
if: ${{ env.exists == 'false' }}
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v3.1.3
with:
name: image-digest ${{ env.IMAGE_NAME }}
path: image-digest
Expand All @@ -148,7 +148,7 @@ jobs:
mkdir -p image-digest/
- name: Download digests of all images built
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
path: image-digest/

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-image-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,15 @@ jobs:
# Upload artifact digests
- name: Upload artifact digests
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v3.1.3
with:
name: image-digest-${{ matrix.name }}
path: image-digest
retention-days: 1

# Upload artifact race images tar
- name: Upload artifact race image tar
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v3.1.3
with:
name: ${{ inputs.imageTarName }}-${{ matrix.name }}
path: /tmp/${{ matrix.name }}-race.tar
Expand Down Expand Up @@ -301,13 +301,13 @@ jobs:
mkdir -p image-digest/
- name: Download digests of all images built
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
path: image-digest/
name: image-digest-spiderpool-agent

- name: Download digests of all images built
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
path: image-digest/
name: image-digest-spiderpool-controller
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-image-plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ jobs:
- name: Upload artifact digests
if: ${{ env == 'false' }}
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v3.1.3
with:
name: image-digest ${{ env.IMAGE_NAME }}
path: image-digest
Expand All @@ -237,7 +237,7 @@ jobs:
mkdir -p image-digest/
- name: Download digests of all images built
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
path: image-digest/

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/call-release-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
cat ${FILE_PATH}
- name: Upload Changelog
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v3.1.3
with:
name: changelog_artifact
path: ${{ env.FILE_PATH }}
Expand All @@ -126,7 +126,7 @@ jobs:
ref: ${{ env.DEST_BRANCH }}

- name: Download Artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: changelog_artifact
path: ${{ env.DEST_DIRECTORY }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/call-release-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
mv charts/*.tgz tmp
- name: Upload Artifact
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v3.1.3
with:
name: chart_package_artifact
path: tmp/*
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
persist-credentials: "true"

- name: Download Artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: chart_package_artifact
path: charts/
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/call-release-doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
echo "Push a doc version: ${{ env.DOCS_TAG }} from branch: ${{ env.REF }}, update it to latest: ${{ env.SET_LATEST }} "
- name: Upload Artifact
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v3.1.3
with:
name: website_package_artifact
path: site.tar.gz
Expand All @@ -152,7 +152,7 @@ jobs:
fetch-depth: 0

- name: Download Artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: website_package_artifact

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/call-release-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,14 @@ jobs:
cd ..
- name: Upload artifact digests
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v3.1.3
with:
name: image-digest-artifact-${{ env.imagetag }}
path: image-digest-output.txt
retention-days: 1

- name: Upload artifact digests
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v3.1.3
with:
name: makefile-digest-artifact-${{ env.imagetag }}
path: Makefile.digests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/call-update-githubpages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ jobs:
mkdir ${{ env.DEST_DIRECTORY }}/charts
- name: Download Website Artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: ${{ inputs.site_artifact_name }}
path: ${{ env.DEST_DIRECTORY }}

- name: Download Chart Artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: ${{ inputs.chart_artifact_name }}
path: ${{ env.DEST_DIRECTORY }}/charts
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/e2e-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ jobs:
bash ./test/scripts/install-tools.sh
- name: Download spiderpool-agent image
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: image-tar-spiderpool-agent
path: test/.download

- name: Download spiderpool-controller image
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: image-tar-spiderpool-controller
path: test/.download
Expand Down Expand Up @@ -197,15 +197,15 @@ jobs:
- name: Upload e2e log
if: ${{ inputs.run_e2e == 'true' }}
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v3.1.3
with:
name: ${{ inputs.os }}-${{ inputs.ip_family }}-${{ matrix.e2e_test_mode }}-${{ inputs.k8s_version }}-debuglog.txt
path: test/e2edebugLog.txt
retention-days: 7

- name: Upload e2e report
if: ${{ env.UPLOAD_E2E_REPORT == 'true' }}
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v3.1.3
with:
name: ${{ inputs.os }}-${{ inputs.ip_family }}-${{ matrix.e2e_test_mode }}-${{ inputs.k8s_version }}-e2ereport.json
path: e2ereport.json
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint-golang.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,15 @@ jobs:
- name: Upload Coverage Artifact
if: ${{ steps.unittest.outcome == 'failure' }}
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v3.1.3
with:
name: coverage.out
path: coverage.out
retention-days: 1

- name: Upload Report Artifact
if: ${{ steps.unittest.outcome == 'failure' }}
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v3.1.3
with:
name: unittestreport.json
path: unittestreport.json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-yaml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

- name: Upload artifact digests
if: ${{ steps.yaml-lint.outcome == 'failure' }}
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v3.1.3
with:
name: log
path: ${{ steps.yaml-lint.outputs.logfile }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/trivy-scan-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
ref: ${{ inputs.ref }}

- name: Download spiderpool-agent image
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: image-tar-spiderpool-agent
path: test/.download

- name: Download spiderpool-controller image
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: image-tar-spiderpool-controller
path: test/.download
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-chart-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
echo "-----------------------------"
- name: Upload artifact digests
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v3.1.3
with:
name: README.md
path: thisProject/charts/spiderpool/README.md
Expand Down

0 comments on commit 0cdac43

Please sign in to comment.