Run workflows only for PRs and master (#1983)

fix #1980

---------

Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
Patrick Schratz 2023-07-12 23:25:05 +02:00 committed by GitHub
parent 8d62578846
commit 308d88fae5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 0 deletions

View file

@ -1,3 +1,8 @@
when:
- event: pull_request
- event: push
branch: [${CI_REPO_DEFAULT_BRANCH}, release/*]
depends_on: depends_on:
- test - test
- web - web

View file

@ -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'

View file

@ -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

View file

@ -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