Commit c7e8e75
authored
MINOR: Restrict trigger push branch for GitHub Workflow (#1204)
Feature branches rarely need their own CI runs: the code is already
tested when a pull request is opened against a release branch. If the
push trigger has no branch restriction and pull_request is also
configured, every push to a branch with an open PR runs the workflow
twice: once for the push and once for the PR synchronisation.
Always give the push trigger an explicit list of branches: this stops
branches created from a release branch from inheriting its workflow
runs.
see
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=430408443#GitHubActionsRecommendedPractices-Restrictthepushtriggertospecificbranches
## What's Changed
Please fill in a description of the changes here.
**This contains breaking changes.** <!-- Remove this line if there are
no breaking changes. -->
Closes #NNN.
Note that I needed to recreate a PR as the previous one was closed
#1202 (comment)
Signed-off-by: Aurélien Pupier <apupier@ibm.com>1 parent 9e86331 commit c7e8e75
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
0 commit comments