Can an input parameter be used for an automatic deployment? #179119
-
Why are you starting this discussion?Question What GitHub Actions topic or product is this about?Workflow Configuration Discussion DetailsI've used workflow_dispatch several times. And I've also written GitHub Workflows to trigger automatically on pushes, PRs, etc. However, I have only a basic understanding of input parameters to GitHub Actions. For example, I know that you can specify the allowable values for an input parameter. I also know that you can specify one of those values to be the default value. But what I don't know is if there is a way of specifying a default input parameter so that if a user performs an action, such as a push or a PR, that GitHub will automatically run the workflow using that default value, without having to require the user to select the input parameter when a workflow_dispatch is also in the .yml file? |
Beta Was this translation helpful? Give feedback.
No,
inputsonly work withworkflow_dispatch. For auto triggers like push or PR, just hardcode a default and override it only whenworkflow_dispatchruns.