Skip to content

Invalid event for type=ref,event=workflow_dispatch #378

Answered by crazy-max
Floppy asked this question in Q&A
Discussion options

You must be logged in to vote

So, my question is, should I be able to use workflow_dispatch events with type=ref,

workflow_dispatch is a github event, not a ref type. As stated in the docs, only branch, tag and pr are valid ref type: https://github.com/docker/metadata-action?tab=readme-ov-file#typeref

the table below includes workflow_dispatch as well, which I think has led me to believe that it's an option, whereas in fact I think it might just be a ref example?

It's just an event type triggering the workflow.


workflow_dispatch only handles branch ref so in your case it would only work with type=ref,event=branch in tags. More info: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Floppy
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants