2 Commits

Author SHA1 Message Date
ddd0101515 fix: fix forgot parsing GITHUB_TOKEN
All checks were successful
CI / test (push) Successful in 10m27s
CI / lint (push) Successful in 19m47s
CI / build (push) Successful in 10m10s
CI / release (push) Successful in 13m56s
2026-02-23 12:38:06 +01:00
65a05e1b60 chore: change goreleaser archive format to array [skip-ci]
Some checks failed
CI / test (push) Successful in 10m26s
CI / lint (push) Successful in 19m53s
CI / build (push) Successful in 10m8s
CI / release (push) Has been cancelled
2026-02-23 11:59:38 +01:00
2 changed files with 4 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ release:
name: go-semrel-provider name: go-semrel-provider
archives: archives:
- format: binary - formats: [binary]
name_template: "{{ .Binary }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}" name_template: "{{ .Binary }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}"
checksum: checksum:

View File

@@ -47,6 +47,9 @@ func (repo *ZexlabRepository) Init(config map[string]string) error {
} }
token := config["token"] token := config["token"]
if token == "" {
token = os.Getenv("GITHUB_TOKEN")
}
if token == "" { if token == "" {
token = os.Getenv("GITEA_TOKEN") token = os.Getenv("GITEA_TOKEN")
} }