From 128bb8d73e0ba97de0b14fbf44a457d145a64b1c 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 | 8 ++++---- go.sum | 0 3 files changed, 13 insertions(+), 14 deletions(-) create mode 100644 go.sum 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..50fb10d 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,11 +25,11 @@ 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 - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: src/github.com/guptarohit/asciigraph - name: Set up GOPATH diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..e69de29