summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2019-11-19 22:40:48 +0000
committerTom Stellard <tstellar@redhat.com>2019-11-20 13:02:28 -0800
commitd24c8dde9103eceb9f689176352481018b79d2af (patch)
tree997cba2419a92a4065446eca36fce14268869e2a
parent0f34f1b9318e7773fd838b9e0b24f0400616540f (diff)
downloadllvm-d24c8dde9103eceb9f689176352481018b79d2af.tar.gz
GitHub Actions: Only run tests on pushes to release/** branches
This prevents the tests from being run twice on pull requests since pull requests first require creating a new branch (which was also triggering CI runs).
-rw-r--r--.github/workflows/commit-tests.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/commit-tests.yml b/.github/workflows/commit-tests.yml
index c2aea1dc8ec5..e60167c20848 100644
--- a/.github/workflows/commit-tests.yml
+++ b/.github/workflows/commit-tests.yml
@@ -3,7 +3,11 @@ name: Commit Tests
env:
release_major: 9
-on: [push, pull_request]
+on:
+ push:
+ branches:
+ - 'release/**'
+ pull_request:
jobs:
build_llvm: