From 4973a11b60949bf74ddab1ee57940dbd6ddfa34f Mon Sep 17 00:00:00 2001 From: Rohit Gupta <7895001+guptarohit@users.noreply.github.com> Date: Mon, 25 Mar 2024 02:20:26 +0530 Subject: [PATCH] Bump GitHub actions workflow dependencies (#49) * Bump GitHub actions workflow dependencies * Update release tag pattern --- .github/workflows/release.yml | 19 +++++++++---------- .github/workflows/test.yml | 6 +++--- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4d9216e..11d92d3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,31 +2,30 @@ name: Release on: push: - tags: - - "*" + tags: ["v*.*.*"] jobs: goreleaser: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: - go-version: ~1.17 - - uses: docker/setup-qemu-action@v1 - - uses: docker/setup-buildx-action@v1 - - uses: docker/login-action@v1 + go-version: "stable" + - uses: docker/setup-qemu-action@v3 + - uses: docker/setup-buildx-action@v3 + - uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v5 with: distribution: goreleaser version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GH_PAT }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bb61e7f..21c6457 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,9 +12,9 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v4 test: strategy: @@ -25,7 +25,7 @@ jobs: steps: - name: Install Go if: success() - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - name: Checkout code