Skip to content

Commit 35275a8

Browse files
committed
BUG/MINOR: allow running on all maintained go versions
1 parent f8ea51c commit 35275a8

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.github/workflows/goreleaser.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,15 @@ jobs:
1212
goreleaser:
1313
runs-on: ubuntu-latest
1414
steps:
15-
-
16-
name: Checkout
15+
- name: Checkout
1716
uses: actions/checkout@v4
1817
with:
1918
fetch-depth: 0
20-
-
21-
name: Set up Go
22-
uses: actions/setup-go@v5
23-
-
24-
name: Run GoReleaser
19+
- name: Set up Go
20+
uses: actions/setup-go@v6
21+
with:
22+
go-version: 'stable' # Latest stable version
23+
- name: Run GoReleaser
2524
uses: goreleaser/goreleaser-action@v6
2625
with:
2726
distribution: goreleaser

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ Session.vim
2121
# VSC
2222
.vscode
2323
check-commit
24+
.env

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/haproxytech/check-commit/v5
22

3-
go 1.25.0
3+
go 1.24.0
44

55
require (
66
github.com/fatih/camelcase v1.0.0

token.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ package main
22

33
import "os"
44

5-
func getAPIToken(alterative string) string {
5+
func getAPIToken(alternative string) string {
66
token := os.Getenv("API_TOKEN")
77
if token == "" {
8-
token = os.Getenv(alterative)
8+
token = os.Getenv(alternative)
99
}
1010

1111
return token

0 commit comments

Comments
 (0)