You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to include a job to my configuration but skip it.
Meaning that I want to have the option to run the job manually if I chose to - for example by clicking the restart button, as I would if I had manually cancelled - and not have it run automatically.
This is different to adding conditionals in a stage as the idea is to have a job available for all relevant builds, but I get to chose if it runs.
The text was updated successfully, but these errors were encountered:
I don't think it is currently possible on TravisCI. I have used it on GitHub Actions with workflow dispatch.
here is a quick example: https://github.com/kasperk81/actionstesting/actions/workflows/myoptionalflow.yml
with regular merge to master, PR or tag push, it will skip the optional job:
and to manually run the optional job, the button will show up to the owner (or person who has access, collaborator/member etc.):
change "nope" to "yes" and hit Run workflow, it will then run the optional step:
(you can fork and try)
Note: here you are in control of "optional' or "skip" semantics, whichever way you want to construct your workflow. Also optional and default jobs can be separated on workflow level too, i.e. put them in separate workflow yml files.
Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues
Is there a way to include a job to my configuration but skip it.
Meaning that I want to have the option to run the job manually if I chose to - for example by clicking the restart button, as I would if I had manually cancelled - and not have it run automatically.
This is different to adding conditionals in a stage as the idea is to have a job available for all relevant builds, but I get to chose if it runs.
The text was updated successfully, but these errors were encountered: