Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to declare custom on triggers for Github Actions publish #8639

Open
arxdeus opened this issue Mar 13, 2025 · 1 comment
Open

Comments

@arxdeus
Copy link

arxdeus commented Mar 13, 2025

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:

  1. run parent workflow via workflow_dispatch (w/ some inputs):

declare job inside in such way:

uses: [reusable_workflow_repo]/publish.yaml@v1: 
  with: [some_inputs]'
  1. 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)

@sigurdm
Copy link
Contributor

sigurdm commented Mar 13, 2025

cc @jonasfj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants