From 50f43c63f91f66713b48a4ee57136332d380931b Mon Sep 17 00:00:00 2001 From: Zach Zhu Date: Tue, 19 Nov 2024 17:59:06 +0800 Subject: [PATCH] ci: upgrade actions to latest version Signed-off-by: Zach Zhu --- .github/workflows/ci.yaml | 14 +++++++------- .github/workflows/release-algorithm.yaml | 10 +++++----- .github/workflows/release.yaml | 10 +++++----- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a628a39..1f63d7b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,23 +10,23 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get changed files id: changed-files - uses: tj-actions/changed-files@v39 + uses: tj-actions/changed-files@v45 with: files_yaml: | go: - '**/*.go' - name: Set up Go if: steps.changed-files.outputs.go_any_changed == 'true' - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: "1.19" cache: false - name: Run golangci-lint if: steps.changed-files.outputs.go_any_changed == 'true' - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 with: version: latest only-new-issues: true @@ -37,12 +37,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Get changed files id: changed-files - uses: tj-actions/changed-files@v39 + uses: tj-actions/changed-files@v45 with: files_yaml: | go: @@ -60,7 +60,7 @@ jobs: run: git rebase origin/main - name: Set up Go if: steps.changed-files.outputs.go_any_modified == 'true' - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: "1.19" - name: Run unit tests diff --git a/.github/workflows/release-algorithm.yaml b/.github/workflows/release-algorithm.yaml index 11134e6..a0521ef 100644 --- a/.github/workflows/release-algorithm.yaml +++ b/.github/workflows/release-algorithm.yaml @@ -12,23 +12,23 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Get tag run: echo "tag=$(git describe --tags --match 'algorithm-v*' | sed -e 's/^algorithm-//')" >> $GITHUB_ENV - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push image - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v6 with: context: ./algorithm file: ./algorithm/horizontal-predictive.Dockerfile diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 81f5a70..094a9dc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,23 +12,23 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Get tag run: echo "tag=$(git describe --tags --match 'v*')" >> $GITHUB_ENV - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push image - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v6 with: context: . platforms: linux/amd64,linux/arm64