-
-
Notifications
You must be signed in to change notification settings - Fork 391
Reorganize github workflows and use specific label [skip circleci] #2297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Instead of adding a condition to every step, would it be possible to generate the empty matrix? |
hmm interesting suggestion, not sure if it is possible, will investigate |
skip ci
[skip ci]
I've investigated a little bit and it seems you can set the matrix contents in a previous job. However it seems to be a little bit complex: https://stackoverflow.com/a/65434401/49554 |
I've tried another approach to make cleaner main job steps: create a post_job which will be a summary of all main jobs and will be succesful if those jobs are skipped by the pre_job. The caveat is we will not be able to remove specific jobs as required in the github project settings but only in the workflow file. |
[skip ci]
[skip ci]
Examples from my repo:
I've still not tested a cancelled job (when you cancel in the github gui you cancel the entire workflow) but i think it will work too |
Will have to update required checks after merging this. Will force push without skipping ci |
[skip ci]
skip ci
I've found a issue with the
https://github.com/haskell/haskell-language-server/runs/4018414106 was skipped in this pr cause at that time the pr had So if someone uses that label incorrectly the pr could not be changed to not skip ci, but changing some file. |
I think it is better to remove manual skip ci, let |
skip ci
@pepeiborra i removed the |
The github workflow will make a comment in the pr to skip circleci as well. circli will look at comments too See example here: jneira#44 |
…2297) * Use post job to set workflow status * Apply post_job trick to bench and nix * Change label to skip circleci * Delete setup cache ide step * Skip circle ci when skipping gh * No skip circleci if its config change * Look for skip label in comments as well * Add missing condition * Use a explicit github token
left bracket skip ci right bracket
in the title or description