From 7ba102b064bdda5356892fc5147e0489c03432c9 Mon Sep 17 00:00:00 2001 From: Harry Marr Date: Wed, 26 Jun 2024 12:40:12 -0400 Subject: [PATCH] update github actions --- .github/workflows/ci.yml | 24 ++++++++++++------------ .github/workflows/release.yml | 10 +++++----- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b20642b..235b373 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: build on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] jobs: build: @@ -14,16 +14,16 @@ jobs: os: [ubuntu-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - - name: Set up Go 1.x - uses: actions/setup-go@v3 - with: - go-version: ^1.18 + - name: Check out code + uses: actions/checkout@v4 - - name: Check out code - uses: actions/checkout@v3 + - name: Set up Go 1.x + uses: actions/setup-go@v5 + with: + go-version: ^1.18 - - name: Build cli - run: go build ./cmd/codeowners + - name: Build cli + run: go build ./cmd/codeowners - - name: Test - run: go test ./... -v + - name: Test + run: go test ./... -v diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3a2bb07..fdacaf6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,19 +3,19 @@ name: release on: push: tags: - - 'v*' + - "v*" jobs: release: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: 1.18 @@ -23,10 +23,10 @@ jobs: run: go test ./... -v - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v6 with: version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} HOMEBREW_TAP_RELEASE_TOKEN: ${{ secrets.HOMEBREW_TAP_RELEASE_TOKEN }}