Skip to content

Commit

Permalink
Upgrade GitHub Actions versions
Browse files Browse the repository at this point in the history
  • Loading branch information
abicky committed Aug 11, 2024
1 parent c88f07c commit ba5d1b4
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,10 @@ jobs:
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-

# `go test` uses only a high-confidence subset of go vet, so execute also `go vet`
- run: make vet
Expand All @@ -41,16 +35,16 @@ jobs:
needs: test
if: contains(github.ref, 'tags/v')
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Check the version
run: grep -qr "version = \"$(git tag --points-at HEAD | sed 's/^v//')\"" cmd

- run: git fetch --prune --unshallow
- uses: actions/setup-go@v1
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- uses: goreleaser/goreleaser-action@v1
- uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --rm-dist
Expand Down

0 comments on commit ba5d1b4

Please sign in to comment.