From 92ae692387201791ad42352411a5adad8b20a2a6 Mon Sep 17 00:00:00 2001 From: Stella Laurenzo Date: Thu, 21 Oct 2021 21:23:21 -0700 Subject: [PATCH] Filter checks to only run on push to main branch. (#372) Keeps redundent pull request and push workflows from running when pushing to branches in the main repo. --- .github/workflows/buildAndTest.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/buildAndTest.yml b/.github/workflows/buildAndTest.yml index 4fd228318..e8233e94f 100644 --- a/.github/workflows/buildAndTest.yml +++ b/.github/workflows/buildAndTest.yml @@ -1,7 +1,9 @@ name: Build and Test -on: +on: push: + branches: + - main pull_request: workflow_dispatch: inputs: