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:
|
commands:
|
||||||
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
|
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
|
||||||
- golangci-lint run
|
- 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
|
- go install github.com/goreleaser/goreleaser@latest
|
||||||
- goreleaser release
|
- goreleaser release
|
||||||
secrets: [ gitea_token ]
|
secrets: [ gitea_token ]
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
repo: ada/spiegel
|
repo: ada/spiegel
|
||||||
depends_on: []
|
depends_on: []
|
||||||
|
|
|
@ -3,3 +3,10 @@ steps:
|
||||||
image: golang:1.22
|
image: golang:1.22
|
||||||
commands:
|
commands:
|
||||||
- go test ./...
|
- go test ./...
|
||||||
|
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
repo: ada/spiegel
|
||||||
|
- event: push
|
||||||
|
branch: main
|
||||||
|
repo: ada/spiegel
|
||||||
|
|
Loading…
Reference in a new issue