Possibility to declare custom on
triggers for Github Actions publish
#8639
Labels
on
triggers for Github Actions publish
#8639
Hello! At the moment we can create releases at pub via
tags
orworkflow_dispatch
, but on Github Actions there exists another type of workflows -Reusable Workflows
that can be executed from any other workflowsTheir
on
handler should be declared asworkflow_call
, so, it can't be used to publish, even if root workflow was initiated viaworkflow_dispatch
Flow:
workflow_dispatch
(w/ some inputs):declare job inside in such way:
workflow_call
of[reusable_workflow_repo]/publish.yaml@v1
which will run
flutter/dart pub publish
here -> drops error because it runs asworkflow_call
and not asworkflow_dispatch
(it ignores the fact that it was ran asworkflow_dispatch
at inital workflow)The text was updated successfully, but these errors were encountered: