mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-29 21:31:02 +00:00
Run workflows only for PRs and master (#1983)
fix #1980 --------- Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
parent
8d62578846
commit
308d88fae5
4 changed files with 20 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
- event: push
|
||||||
|
branch: [${CI_REPO_DEFAULT_BRANCH}, release/*]
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- test
|
- test
|
||||||
- web
|
- web
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
- event: push
|
||||||
|
branch: [${CI_REPO_DEFAULT_BRANCH}, release/*]
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
- &golang_image 'golang:1.20.2'
|
- &golang_image 'golang:1.20.2'
|
||||||
- &node_image 'node:18-alpine'
|
- &node_image 'node:18-alpine'
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
- event: push
|
||||||
|
branch: [${CI_REPO_DEFAULT_BRANCH}, release/*]
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
- &golang_image 'golang:1.20.2'
|
- &golang_image 'golang:1.20.2'
|
||||||
- &when
|
- &when
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
- event: push
|
||||||
|
branch: [${CI_REPO_DEFAULT_BRANCH}, release/*]
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
- &node_image 'node:18-alpine'
|
- &node_image 'node:18-alpine'
|
||||||
- &when
|
- &when
|
||||||
|
|
Loading…
Reference in a new issue