Run ci only when needed
This commit is contained in:
parent
aac7e7589f
commit
099419bbbd
3 changed files with 17 additions and 4 deletions
|
@ -4,3 +4,9 @@ steps:
|
|||
commands:
|
||||
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
|
||||
- golangci-lint run
|
||||
when:
|
||||
- event: pull_request
|
||||
repo: ada/spiegel
|
||||
- event: push
|
||||
branch: main
|
||||
repo: ada/spiegel
|
||||
|
|
|
@ -5,7 +5,7 @@ steps:
|
|||
- go install github.com/goreleaser/goreleaser@latest
|
||||
- goreleaser release
|
||||
secrets: [ gitea_token ]
|
||||
when:
|
||||
when:
|
||||
event: tag
|
||||
repo: ada/spiegel
|
||||
depends_on: []
|
||||
depends_on: []
|
||||
|
|
|
@ -3,3 +3,10 @@ steps:
|
|||
image: golang:1.22
|
||||
commands:
|
||||
- go test ./...
|
||||
|
||||
when:
|
||||
- event: pull_request
|
||||
repo: ada/spiegel
|
||||
- event: push
|
||||
branch: main
|
||||
repo: ada/spiegel
|
||||
|
|
Loading…
Reference in a new issue