You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! At the moment we can create releases at pub via tags or workflow_dispatch, but on Github Actions there exists another type of workflows - Reusable Workflows that can be executed from any other workflows
Their on handler should be declared as workflow_call, so, it can't be used to publish, even if root workflow was initiated via workflow_dispatch
Flow:
run parent workflow via workflow_dispatch (w/ some inputs):
it will run workflow_call of [reusable_workflow_repo]/publish.yaml@v1
which will run flutter/dart pub publish here -> drops error because it runs as workflow_call and not as workflow_dispatch (it ignores the fact that it was ran as workflow_dispatch at inital workflow)
The text was updated successfully, but these errors were encountered:
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: