From fa0007cda4afdf46da7a672695ee796b18b5ac2c Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Thu, 1 Dec 2022 21:38:56 +0100 Subject: [PATCH] Run GitHub CI only if push to master or activity on PR branch but not both Signed-off-by: Sebastian Martinez --- .github/workflows/check-build.yml | 8 +++++++- .github/workflows/check-e2e.yml | 8 +++++++- .github/workflows/check-format.yml | 8 +++++++- .github/workflows/check-unit-test.yml | 8 +++++++- .github/workflows/check.yml | 8 +++++++- 5 files changed, 35 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-build.yml b/.github/workflows/check-build.yml index 3bdbb6d8e..25ca74503 100644 --- a/.github/workflows/check-build.yml +++ b/.github/workflows/check-build.yml @@ -1,5 +1,11 @@ name: check-build -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: + branches: + - master jobs: check-build: diff --git a/.github/workflows/check-e2e.yml b/.github/workflows/check-e2e.yml index 79c5be6f6..d33d5e253 100644 --- a/.github/workflows/check-e2e.yml +++ b/.github/workflows/check-e2e.yml @@ -1,5 +1,11 @@ name: check-e2e -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: + branches: + - master jobs: check-e2e: diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml index b382c223f..39d1542c9 100644 --- a/.github/workflows/check-format.yml +++ b/.github/workflows/check-format.yml @@ -1,5 +1,11 @@ name: check-format -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: + branches: + - master jobs: check-format: diff --git a/.github/workflows/check-unit-test.yml b/.github/workflows/check-unit-test.yml index 7ed0fe008..1cdbcf5a4 100644 --- a/.github/workflows/check-unit-test.yml +++ b/.github/workflows/check-unit-test.yml @@ -1,5 +1,11 @@ name: check-unit-test -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: + branches: + - master jobs: check-unit-test: diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index b1957ab3e..ed9378cd2 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,5 +1,11 @@ name: check -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: + branches: + - master jobs: check: