From 8edc9dd0298bb937fcca1c5ea17b2b3b4694da4a Mon Sep 17 00:00:00 2001 From: YZ775 Date: Thu, 3 Oct 2024 00:26:32 +0000 Subject: [PATCH] update actions --- .github/workflows/ci.yaml | 34 ++++++++++++++++----------------- .github/workflows/mdbook.yaml | 8 ++++---- .github/workflows/release.yaml | 16 ++++++++-------- .github/workflows/renovate.yaml | 4 ++-- 4 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7393129..9ec1a2d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,8 +9,8 @@ jobs: name: Build binaries runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version-file: go.mod cache: true @@ -22,13 +22,13 @@ jobs: name: Check goreleaser.yml runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version-file: go.mod cache: true - - uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b # v4.2.0 + - uses: goreleaser/goreleaser-action@v6 with: version: latest args: check -f .goreleaser.yml @@ -36,8 +36,8 @@ jobs: name: Small tests runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version-file: go.mod cache: true @@ -57,8 +57,8 @@ jobs: - v1.30.4 # renovate: kindest/node runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version-file: go.mod cache: true @@ -72,7 +72,7 @@ jobs: - run: make logs working-directory: e2e if: always() - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: always() with: name: logs-${{ matrix.k8s-version }}.tar.gz @@ -81,8 +81,8 @@ jobs: name: Run tilt ci runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version-file: go.mod cache: true @@ -96,13 +96,13 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: docker/setup-qemu-action@v1 - - uses: docker/setup-buildx-action@v1 + - uses: docker/setup-qemu-action@v3 + - uses: docker/setup-buildx-action@v3 - name: Setup go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version-file: go.mod cache: true @@ -113,7 +113,7 @@ jobs: run: | echo "GORELEASER_CURRENT_TAG=$(git describe --tags --abbrev=0 --match "v*" || echo v0.0.0)" >> $GITHUB_ENV - name: GoReleaser - uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b # v4.2.0 + uses: goreleaser/goreleaser-action@v6 with: version: latest args: --snapshot --skip=publish --clean diff --git a/.github/workflows/mdbook.yaml b/.github/workflows/mdbook.yaml index 699ac5a..61f23c3 100644 --- a/.github/workflows/mdbook.yaml +++ b/.github/workflows/mdbook.yaml @@ -9,12 +9,12 @@ jobs: name: Build book runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ./.github/actions/aqua with: github_token: ${{ secrets.GITHUB_TOKEN }} - run: make book - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: book path: docs/book @@ -24,12 +24,12 @@ jobs: runs-on: ubuntu-22.04 needs: build steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: gh-pages # ignore helm chart index file and chart archive file. - run: ls | grep -v -E 'index.yaml|.*\.tgz' | xargs rm -rf - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: book - run: git add . diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4b45d83..1d21c02 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,19 +8,19 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: docker/setup-qemu-action@v1 - - uses: docker/setup-buildx-action@v1 + - uses: docker/setup-qemu-action@v3 + - uses: docker/setup-buildx-action@v3 - name: GHCR Login - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Setup go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version-file: go.mod cache: true @@ -32,7 +32,7 @@ jobs: export TAG=$(curl -s "https://api.github.com/repos/cybozu-go/cattage/releases/latest" | jq -r .tag_name) echo "GORELEASER_PREVIOUS_TAG=${TAG}" >> $GITHUB_ENV - name: GoReleaser - uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b # v4.2.0 + uses: goreleaser/goreleaser-action@v6 with: version: latest args: release --clean @@ -44,11 +44,11 @@ jobs: if: contains(needs.release.result, 'success') steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Install Helm - uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5 + uses: azure/setup-helm@v4 - name: Set chart version run: | helm repo add cattage https://cybozu-go.github.io/cattage diff --git a/.github/workflows/renovate.yaml b/.github/workflows/renovate.yaml index f935901..c787c2d 100644 --- a/.github/workflows/renovate.yaml +++ b/.github/workflows/renovate.yaml @@ -7,9 +7,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Self-hosted Renovate - uses: renovatebot/github-action@2a87d1192eaa0cac92b6566233afedf68fd3472a # renovate v38.1.8 + uses: renovatebot/github-action@a1ed1d0adddfdf138192d1fbe3150a80094dee6a # renovate v40.3.1 with: configurationFile: renovate.json token: ${{ secrets.RENOVATE_TOKEN }}