From ff86c72e09f8d7c623fafec671d44d62ef940e50 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Tue, 16 Mar 2021 00:20:05 +0200 Subject: [PATCH] [ci] Avoid duplicate builds on pull requests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don’t run GitHub Actions on pushing to branches other than master. This was already the case for the linux-ci workflow. --- .github/workflows/msvc-ci.yml | 2 ++ .github/workflows/msys2-ci.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/msvc-ci.yml b/.github/workflows/msvc-ci.yml index 4fae289a0..2dd722eda 100644 --- a/.github/workflows/msvc-ci.yml +++ b/.github/workflows/msvc-ci.yml @@ -2,7 +2,9 @@ name: msvc on: push: + branches: [ master ] pull_request: + branches: [ master ] jobs: msvc: diff --git a/.github/workflows/msys2-ci.yml b/.github/workflows/msys2-ci.yml index 26219b046..a0405e3f8 100644 --- a/.github/workflows/msys2-ci.yml +++ b/.github/workflows/msys2-ci.yml @@ -2,7 +2,9 @@ name: msys2 on: push: + branches: [ master ] pull_request: + branches: [ master ] jobs: msys2: