From 806c66f9a255654f9af19bde463c50045186ce1e Mon Sep 17 00:00:00 2001 From: Akhil Mohan Date: Thu, 8 Jun 2023 03:49:28 -0700 Subject: [PATCH 1/2] update actions using node12 update all the github actions using node12 to version that use node16 - update actions/checkout@v2 -> v3 - update actions/cache@v2 -> v3 - update actions/setup-go@v2 -> v4 cache has been set to disabled for setup-go due to https://github.com/actions/setup-go/issues/368 Signed-off-by: Akhil Mohan --- .github/workflows/build.yml | 14 ++++++++------ .github/workflows/containerd.yml | 11 ++++++----- .github/workflows/crio.yml | 7 ++++--- .github/workflows/e2e.yml | 9 +++++---- .github/workflows/release.yml | 8 +++++--- 5 files changed, 28 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 38a42b2cd4..6f036a85f7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,9 +18,10 @@ jobs: steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: '1.20' + cache: false - name: Set env shell: bash @@ -29,7 +30,7 @@ jobs: echo "${{ github.workspace }}/bin" >> $GITHUB_PATH - name: Cache go modules and build cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/go/pkg/mod @@ -39,7 +40,7 @@ jobs: restore-keys: ${{ runner.os }}-go- - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: src/github.com/kubernetes-sigs/cri-tools @@ -62,9 +63,10 @@ jobs: # Ref: https://github.com/uraimo/run-on-arch-action steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: '1.20' + cache: false - name: Set env shell: bash @@ -73,7 +75,7 @@ jobs: echo "${{ github.workspace }}/bin" >> $GITHUB_PATH - name: Cache go modules and build cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/go/pkg/mod @@ -83,7 +85,7 @@ jobs: restore-keys: ${{ runner.os }}-go- - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: src/github.com/kubernetes-sigs/cri-tools fetch-depth: 0 diff --git a/.github/workflows/containerd.yml b/.github/workflows/containerd.yml index 2647d29c34..1752bb5181 100644 --- a/.github/workflows/containerd.yml +++ b/.github/workflows/containerd.yml @@ -47,9 +47,10 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: '1.20' + cache: false - name: Set env shell: bash @@ -58,7 +59,7 @@ jobs: echo "${{ github.workspace }}/bin" >> $GITHUB_PATH - name: Cache go modules and build cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/go/pkg/mod @@ -68,21 +69,21 @@ jobs: restore-keys: ${{ runner.os }}-go- - name: Checkout containerd/containerd ${{ format(matrix.version, '/') }} - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: ${{ github.workspace }}/src/github.com/containerd/containerd repository: containerd/containerd ref: ${{ format(matrix.version, '/') }} - name: Checkout Microsoft/hcsshim - uses: actions/checkout@v2 + uses: actions/checkout@v3 if: startsWith(matrix.os, 'windows') with: repository: Microsoft/hcsshim path: src/github.com/Microsoft/hcsshim - name: Checkout cri-tools for this commit - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: ${{github.workspace}}/src/github.com/kubernetes-sigs/cri-tools diff --git a/.github/workflows/crio.yml b/.github/workflows/crio.yml index e21abc2329..924fc085a3 100644 --- a/.github/workflows/crio.yml +++ b/.github/workflows/crio.yml @@ -18,9 +18,10 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Install go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: '1.20' + cache: false - name: Setup environment shell: bash @@ -29,7 +30,7 @@ jobs: echo "${{ github.workspace }}/bin" >> $GITHUB_PATH - name: Cache go modules and build cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/go/pkg/mod @@ -72,7 +73,7 @@ jobs: sudo systemctl start crio - name: Checkout cri-tools for this commit - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: ${{github.workspace}}/src/github.com/kubernetes-sigs/cri-tools diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 9de5c26153..1c89d038d6 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -18,9 +18,10 @@ jobs: steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: '1.20' + cache: false - name: Set env shell: bash @@ -29,7 +30,7 @@ jobs: echo "${{ github.workspace }}/bin" >> $GITHUB_PATH - name: Cache go modules and build cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/go/pkg/mod @@ -39,12 +40,12 @@ jobs: restore-keys: ${{ runner.os }}-go- - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: src/github.com/kubernetes-sigs/cri-tools - name: Cache go modules and build cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/go/pkg/mod diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9bb71af92a..a26707e16c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,22 +8,24 @@ jobs: name: release runs-on: ubuntu-20.04 steps: - - uses: actions/setup-go@v2 + - uses: actions/setup-go@v4 with: go-version: '1.20' + cache: false + - name: Set env shell: bash run: | echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV echo "${{ github.workspace }}/bin" >> $GITHUB_PATH - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/go/pkg/mod ~/.cache/go-build key: go-release-${{ hashFiles('**/go.sum') }} restore-keys: go-release- - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 path: src/github.com/kubernetes-sigs/cri-tools From c3a28fe2fac390ab4fa0ca1377e81dde11f3be49 Mon Sep 17 00:00:00 2001 From: Akhil Mohan Date: Thu, 8 Jun 2023 22:50:48 -0700 Subject: [PATCH 2/2] add dependabot config to update github actions Signed-off-by: Akhil Mohan --- .github/dependabot.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index d663426c2f..87c22089af 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,3 +7,9 @@ updates: labels: - "release-note-none" open-pull-requests-limit: 10 +- package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: daily + labels: + - "release-note-none"