From 44a1526f4f7fc3670687ceb57476b2e16c354882 Mon Sep 17 00:00:00 2001 From: Kevin Klein <7267523+kklein@users.noreply.github.com> Date: Mon, 5 Aug 2024 10:17:55 +0200 Subject: [PATCH] Adapt CI trigger to run on PR from fork. (#74) * Adapt CI trigger to run on PR from fork. * Trigger on any tag, not only those prefixed with v. * Fix syntax. * Use default pull request types. --- .github/workflows/ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9d98ef0..f455d9e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,15 @@ name: CI -on: [push] +on: + # We would like to trigger for CI for any pull request action - + # both from QuantCo's branches as well as forks. + pull_request: + # In addition to pull requests, we want to run CI for pushes + # to the main branch and tags. + push: + branches: + - "main" + tags: + - "*" # Automatically stop old builds on the same branch/PR concurrency: