From c046ee4dc1156f0885500b3372e4a418f215b9bb Mon Sep 17 00:00:00 2001 From: Shelley-BaoYue Date: Wed, 11 Sep 2024 17:43:16 +0800 Subject: [PATCH] upgrade github actions to v4 Signed-off-by: Shelley-BaoYue --- .github/workflows/build-tools.yml | 2 +- .github/workflows/cifuzz.yml | 2 +- .github/workflows/fossa.yml | 4 +- .github/workflows/main-doc.yaml | 4 +- .github/workflows/main.yaml | 66 +++++++++++++++---------------- .github/workflows/release.yml | 4 +- .github/workflows/schedule.yml | 28 ++++++------- 7 files changed, 55 insertions(+), 55 deletions(-) diff --git a/.github/workflows/build-tools.yml b/.github/workflows/build-tools.yml index 6e8660e3cb8..78a3eb9dba9 100644 --- a/.github/workflows/build-tools.yml +++ b/.github/workflows/build-tools.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # fetch-depth: # 0 indicates all history for all branches and tags. diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml index 6d8e43fbbcb..b3d64e00b0a 100644 --- a/.github/workflows/cifuzz.yml +++ b/.github/workflows/cifuzz.yml @@ -34,7 +34,7 @@ jobs: dry-run: false language: go - name: Upload Crash - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 if: failure() && steps.build.outcome == 'success' with: name: artifacts diff --git a/.github/workflows/fossa.yml b/.github/workflows/fossa.yml index d1235e06878..878591b5d07 100644 --- a/.github/workflows/fossa.yml +++ b/.github/workflows/fossa.yml @@ -18,8 +18,8 @@ jobs: build: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 with: go-version: "^1.21.x" - run: go version diff --git a/.github/workflows/main-doc.yaml b/.github/workflows/main-doc.yaml index bfed3699498..106840b43ce 100644 --- a/.github/workflows/main-doc.yaml +++ b/.github/workflows/main-doc.yaml @@ -26,12 +26,12 @@ jobs: GOPATH: /home/runner/work/${{ github.repository }} steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: 1.21.x - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 path: ./src/github.com/${{ github.repository }} diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 1971b9d6ef3..a28e4a8585b 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -30,17 +30,17 @@ jobs: GOPATH: /home/runner/work/${{ github.repository }} steps: - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: 1.21.x - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 path: ./src/github.com/${{ github.repository }} - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -69,7 +69,7 @@ jobs: docker save kubeedge/build-tools:1.21.11-ke1 > /home/runner/build-tools/build-tools.tar - name: Temporarily save kubeedge/build-tools image - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build-tools-docker-artifact path: /home/runner/build-tools @@ -80,18 +80,18 @@ jobs: name: Multiple build needs: image-prepare steps: - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Retrieve saved kubeedge/build-tools image - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: build-tools-docker-artifact path: /home/runner/build-tools @@ -118,11 +118,11 @@ jobs: GO111MODULE: on steps: - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: 1.21.x - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -132,7 +132,7 @@ jobs: command -v ginkgo || go install github.com/onsi/ginkgo/v2/ginkgo@${{ env.GINKGO_VERSION }} - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -183,11 +183,11 @@ jobs: GO111MODULE: on steps: - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: 1.21.x - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -199,7 +199,7 @@ jobs: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.29.5/bin/linux/amd64/kubectl && sudo install kubectl /usr/local/bin/kubectl - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -207,7 +207,7 @@ jobs: run: docker system prune -a -f - name: Retrieve saved kubeedge/build-tools image - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: build-tools-docker-artifact path: /home/runner/build-tools @@ -229,7 +229,7 @@ jobs: export CONTAINER_RUNTIME="containerd" make e2e - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: always() with: name: ${{ matrix.cases.version }}-${{ matrix.cases.protocol }}-e2e-test-logs @@ -246,11 +246,11 @@ jobs: GO111MODULE: on steps: - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: 1.21.x - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -262,7 +262,7 @@ jobs: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.29.5/bin/linux/amd64/kubectl && sudo install kubectl /usr/local/bin/kubectl - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -270,7 +270,7 @@ jobs: run: docker system prune -a -f - name: Retrieve saved kubeedge/build-tools image - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: build-tools-docker-artifact path: /home/runner/build-tools @@ -293,11 +293,11 @@ jobs: GO111MODULE: on steps: - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: 1.21.x - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -309,7 +309,7 @@ jobs: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.29.5/bin/linux/amd64/kubectl && sudo install kubectl /usr/local/bin/kubectl - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -332,13 +332,13 @@ jobs: timeout-minutes: 40 name: Multiple docker image build steps: - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -360,11 +360,11 @@ jobs: GO111MODULE: on steps: - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: 1.21.x - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -376,7 +376,7 @@ jobs: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.29.5/bin/linux/amd64/kubectl && sudo install kubectl /usr/local/bin/kubectl - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -385,7 +385,7 @@ jobs: env: CONTAINER_RUNTIME: ${{ matrix.container-runtime }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: always() with: name: ${{ matrix.container-runtime }}-e2e-test-logs @@ -402,11 +402,11 @@ jobs: GO111MODULE: on steps: - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: 1.21.x - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -418,7 +418,7 @@ jobs: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.29.5/bin/linux/amd64/kubectl && sudo install kubectl /usr/local/bin/kubectl - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -426,7 +426,7 @@ jobs: run: docker system prune -a -f - name: Retrieve saved kubeedge/build-tools image - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: build-tools-docker-artifact path: /home/runner/build-tools @@ -445,7 +445,7 @@ jobs: make conformance_e2e - name: Upload conformance e2e test results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: name: kube-conformance-e2e-results diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 84ef9f45d12..72c41351c8e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,7 +38,7 @@ jobs: hash-edgesite-linux-arm: ${{ steps.hash.outputs.hash-edgesite-linux-arm }} steps: - name: checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # fetch-depth: # 0 indicates all history for all branches and tags. @@ -118,7 +118,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # fetch-depth: # 0 indicates all history for all branches and tags. diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml index 0853128f2fe..a09c18cbd35 100644 --- a/.github/workflows/schedule.yml +++ b/.github/workflows/schedule.yml @@ -19,17 +19,17 @@ jobs: GOPATH: /home/runner/work/${{ github.repository }} steps: - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: 1.21.x - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 path: ./src/github.com/${{ github.repository }} - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -50,7 +50,7 @@ jobs: docker save kubeedge/build-tools:1.21.11-ke1 > /home/runner/build-tools/build-tools.tar - name: Temporarily save kubeedge/build-tools image - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build-tools-docker-artifact path: /home/runner/build-tools @@ -61,18 +61,18 @@ jobs: name: Multiple build needs: image-prepare steps: - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Retrieve saved kubeedge/build-tools image - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: build-tools-docker-artifact path: /home/runner/build-tools @@ -111,11 +111,11 @@ jobs: GO111MODULE: on steps: - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: 1.21.x - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -127,12 +127,12 @@ jobs: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.29.5/bin/linux/amd64/kubectl && sudo install kubectl /usr/local/bin/kubectl - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Retrieve saved kubeedge/build-tools image - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: build-tools-docker-artifact path: /home/runner/build-tools @@ -164,11 +164,11 @@ jobs: GO111MODULE: on steps: - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: 1.21.x - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -180,7 +180,7 @@ jobs: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.29.5/bin/linux/amd64/kubectl && sudo install kubectl /usr/local/bin/kubectl - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0