Skip to content

Error undefined: No tag found in ref or input! #26381

Discussion options

You must be logged in to vote

It’s not about the job, it’s about the workflow trigger. You currently have this:

TomCockram:
on:  
  push:
    branches:
      - dev

That means the workflow will run if you push the dev branch, and github.ref will always be refs/heads/dev. The workflow will not run when you push a tag, so that action cannot automatically determine the tag you want to use.

According to the ncipollo/release-action README you have two options:

  • Run the workflow on tag pushes. This is the obvious one: If you push a tag, the release will be made using that tag. For example, to make a release on any tag:
on:  
  push:
    tags:
      - '*'
  • Specify the tag name when calling the action, by adding a tag k…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@SatheeshVxceed
Comment options

Answer selected
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
3 participants