From 009bb7d39aaf537080f15a68f046254bec7c598b Mon Sep 17 00:00:00 2001 From: FreskyZ Date: Mon, 30 Sep 2024 22:15:43 +0800 Subject: [PATCH] ci: do not trigger on every branch --- .github/workflows/build.yml | 8 +++++++- .github/workflows/feature-matrix.yml | 8 +++++++- .github/workflows/unit.yml | 8 +++++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ddde48b2..7a634252 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,12 @@ name: Build -on: [push, pull_request, workflow_dispatch] +on: + push: + branches: + - "main" + pull_request: + branches: + - "main" jobs: windows: diff --git a/.github/workflows/feature-matrix.yml b/.github/workflows/feature-matrix.yml index 2dc1c83b..0bb8478e 100644 --- a/.github/workflows/feature-matrix.yml +++ b/.github/workflows/feature-matrix.yml @@ -1,6 +1,12 @@ name: Feature matrix -on: [push, pull_request, workflow_dispatch] +on: + push: + branches: + - "main" + pull_request: + branches: + - "main" jobs: windows_msvc_x64: diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index a1de879a..f3a1620d 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -1,6 +1,12 @@ name: Unit -on: [push, pull_request, workflow_dispatch] +on: + push: + branches: + - "main" + pull_request: + branches: + - "main" jobs: teal_lua_consistency: