top | item 37613333

(no title)

nthState | 2 years ago

Most of my problems would vanish if there was an official way to run workflows locally, something like:

shell: run_workflow name=MyJob in=MyWorkflow.yml params={}

discuss

order

avtar|2 years ago

I guess you have to ask yourself what's in MyWorkflow.yml that can't be in a script and run locally?

mason55|2 years ago

Well, that's why the word "official" is in there. Obviously you could mock up the entire github actions scaffolding locally and have it inject environment variables and support all the actions and everything, but keeping that up to date will be a nightmare if you're doing it on your own.

Obviously you could put the whole CI/CD into a bash script and not use any features or functionality provided by github actions but there are plenty of nice things that it does and it would be a shame to not use any of them.