Is there a way to put an argument into a GitHub action definition so that the action does not run when you push it to GitHub?
I have a package template, and I want to include certain actions, but I don't want users of the template to have to do something to get those actions to run (not run automatically – and fail – when when they push to GitHub)
I'm hoping there's a configuration field for run_automatically: false or something similar.
There are two ways:
...
jobs:
build_and_preview:
if: ${{ false }} # <- This make sure the workflow is skipped without any alert
runs-on: ubuntu-latest
.
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With