Commit 88231b1
committed
Merge #6794: ci: add SKIP_ON_PUSH and SKIP_ON_PR environment variables to build workflow
7417fb9 ci: simplify skip logic to only affect container jobs (pasta)
6d89784 ci: add SKIP_ON_PUSH and SKIP_ON_PR environment variables to build workflow (pasta)
Pull request description:
## Issue being fixed or feature implemented
In DashCoreAutoGuix/dash, it's a pain to see which PRs have successfully CI, because the PR CI cancels the push CI, and GitHub UI interprets a cancel as a fail. This will allow me to configure the CI to only run the CI for the push commit, allow the CI status on the PR page to accurately reflect the true status.
## What was done?
Add support for skipping CI builds based on environment variables:
- SKIP_ON_PUSH: Skip all builds when set on push events
- SKIP_ON_PR: Skip all builds when set on pull request events
This provides a quick way to disable CI runs without modifying workflow files directly, useful for maintenance periods or resource management.
## How Has This Been Tested?
See PastaPastaPasta#37 for this working in my fork.
## Breaking Changes
None
## Checklist:
_Go over all the following points, and put an `x` in all the boxes that apply._
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added or updated relevant unit/integration/functional/e2e tests
- [ ] I have made corresponding changes to the documentation
- [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_
ACKs for top commit:
UdjinM6:
utACK 7417fb9
Tree-SHA512: feef92af6bf43977e38f78370201cd21e1c4193c622e8c2b0685cf4f7c7c274b020c2cc9ff7a93f311a25676a652d3a94e5cf17ea4341b1278aa35d6bbc7ec071 file changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
21 | 40 | | |
22 | 41 | | |
| 42 | + | |
| 43 | + | |
23 | 44 | | |
24 | 45 | | |
25 | 46 | | |
| |||
28 | 49 | | |
29 | 50 | | |
30 | 51 | | |
| 52 | + | |
| 53 | + | |
31 | 54 | | |
32 | 55 | | |
33 | 56 | | |
| |||
0 commit comments