Skip to content

Commit 7ba102b

Browse files
committed
update github actions
1 parent 06d1caa commit 7ba102b

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

.github/workflows/ci.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: build
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
build:
@@ -14,16 +14,16 @@ jobs:
1414
os: [ubuntu-latest, windows-latest]
1515
runs-on: ${{ matrix.os }}
1616
steps:
17-
- name: Set up Go 1.x
18-
uses: actions/setup-go@v3
19-
with:
20-
go-version: ^1.18
17+
- name: Check out code
18+
uses: actions/checkout@v4
2119

22-
- name: Check out code
23-
uses: actions/checkout@v3
20+
- name: Set up Go 1.x
21+
uses: actions/setup-go@v5
22+
with:
23+
go-version: ^1.18
2424

25-
- name: Build cli
26-
run: go build ./cmd/codeowners
25+
- name: Build cli
26+
run: go build ./cmd/codeowners
2727

28-
- name: Test
29-
run: go test ./... -v
28+
- name: Test
29+
run: go test ./... -v

.github/workflows/release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,30 @@ name: release
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- "v*"
77

88
jobs:
99
release:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
1616

1717
- name: Set up Go
18-
uses: actions/setup-go@v3
18+
uses: actions/setup-go@v5
1919
with:
2020
go-version: 1.18
2121

2222
- name: Test
2323
run: go test ./... -v
2424

2525
- name: Run GoReleaser
26-
uses: goreleaser/goreleaser-action@v3
26+
uses: goreleaser/goreleaser-action@v6
2727
with:
2828
version: latest
29-
args: release --rm-dist
29+
args: release --clean
3030
env:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3232
HOMEBREW_TAP_RELEASE_TOKEN: ${{ secrets.HOMEBREW_TAP_RELEASE_TOKEN }}

0 commit comments

Comments
 (0)