Replies: 3 comments
-
Is it possible to avoid duplication of inputs in workflow_call and workflow_dispatch? Can we use shared_inputs between workflow_call and workflow_dispatch ? |
Beta Was this translation helpful? Give feedback.
-
Composite Action ./.github/actions/build-api/action.ymlname: 'Build API' Main Workflowname: Deploy jobs: |
Beta Was this translation helpful? Give feedback.
-
Și nu nu am am vrut să-ți dau și |
Beta Was this translation helpful? Give feedback.
-
Hi!
I'm defining most of my workflows as reusable i.e
Workflow 1
- Build docker imageWorkflow 2
- Reuseworkflow 1
and push image to registryWorkflow 3
(From different repo) - Reuseworkflow 2
and deploy image into dev environmentThanks to this solution, i can trigger
workflow 1
each time PR is opened so I have built run for checks, but I can also run it manually, the same applies forworkflow 2
.The problem is, that I want to pass some inputs to
workflow 2
fromworkflow 3
(i.e branch to build), but I also want to runworkflow 2
manually. My main question is - do I need to define all the inputs twice, if I want them to be present in case the workflow is dispatched or called? (I know that by default, all caller workflow inputs will be passed, but this is not clear solution and I want to have it clearly indicated that I'm passing those variables.Is it the only way to achieve that?
Or this could be somehow assigned both to
workflow_dispatch
andworkflow_call
without adding extra lines of code?Beta Was this translation helpful? Give feedback.
All reactions