From 7e4b425ea31b53331c9ef3945893bc503494d381 Mon Sep 17 00:00:00 2001 From: Brian Helba Date: Mon, 25 Oct 2021 09:02:06 -0400 Subject: [PATCH] Don't run duplicate CI tasks on every PR The "pull_request" action already runs on pushes to any branch with an open PR, so only run the "push" action on the "master" branch. --- .github/workflows/test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 755bc27..8a8e8d4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,10 @@ name: Test -on: [push, pull_request] +on: + pull_request: + push: + branches: + - master jobs: build: