Skip to content

Confusing documentation about tags #366

Discussion options

You must be logged in to vote
  1. Is the type of the output tag the ref , if the event that triggered this workflow is a push to the branch ?

ref tag type is explained here https://github.com/docker/metadata-action#typeref. You also have examples of what to expect in the table below:

This type handles Git ref (or reference) for the following events:

  • branch ; eg. refs/heads/master
  • tag ; eg. refs/tags/v1.0.0
  • pr ; eg. refs/pull/318/merge
Event Ref Output
pull_request refs/pull/2/merge pr-2
push refs/heads/master master
push refs/heads/my/branch my-branch
push tag refs/tags/v1.2.3 v1.2.3
push tag refs/tags/v2.0.8-beta.67 v2.0.8-beta.67
workflow_dispatch refs/heads/master master

Ref is set by GitHub…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by crazy-max
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