From 5893f948197b669b4bcbe2b8018bb50df9e814fd Mon Sep 17 00:00:00 2001 From: sudoforge Date: Tue, 23 Jul 2024 20:30:37 -0700 Subject: fix: run the presubmit pipeline for PRs commit 5eabe549e4f7fc98bbdf4e7b285cec00e5da4e99 refactored the workflows so that they were orchestrated with reusable workflows. an unintended side-effect of the rules that were created prevents the presubmit pipeline from executing for pull requests made against this repository. this change refactors this, so that the presubmit pipeline will _only_ run for pull requests against the default tree of this repository. we explicitly remove the `on: push` event for it, in order to avoid overlap that will occur for commits made in this repository that are also part of a PR. Change-Id: I56abc35c98cc40a06066952f2b6ed9194b1ab903 --- .github/workflows/presubmit.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index df2130a0..937c17a0 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -1,15 +1,16 @@ # //.github/workflows:presubmit.yml # # This file exists to define the steps executed for a push to each tree matching -# the pattern `refs/heads/*`, excluding the default ref. For configuring the +# the pattern `refs/heads/*`, excluding the default ref, when they are used as +# the head for a pull request against the default tree. For configuring the # steps that occur after a push to the trunk branch, see # `//.github/workflows:trunk.yml`. --- name: presubmit on: - push: - branches-ignore: + pull_request: + branches: - master concurrency: -- cgit