Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v5
-
name: Run GoReleaser
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: 'stable' # Latest stable version
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ Session.vim
# VSC
.vscode
check-commit
.env
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/haproxytech/check-commit/v5

go 1.25.0
go 1.24.0

require (
github.com/fatih/camelcase v1.0.0
Expand Down
4 changes: 2 additions & 2 deletions token.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package main

import "os"

func getAPIToken(alterative string) string {
func getAPIToken(alternative string) string {
token := os.Getenv("API_TOKEN")
if token == "" {
token = os.Getenv(alterative)
token = os.Getenv(alternative)
}

return token
Expand Down