Error undefined: No tag found in ref or input! #26381
-
Hi, I am trying to create an action that will detect when a change has happened on a certain branch and then build a release. The problem I’m getting is that in my file I use this line:
This is my yml file:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Looks like the problem is that your workflow runs on branch push, not tag push, so |
Beta Was this translation helpful? Give feedback.
-
Hmm, how would I get it to include my tags? As far as I’m aware you can set GitHub actions to perform when something is pushed to a certain branch. I have added |
Beta Was this translation helpful? Give feedback.
-
It’s not about the job, it’s about the workflow trigger. You currently have this:
TomCockram:
That means the workflow will run if you push the According to the
If you want to run on both tag and branch pushes and skip the release on non-tag pushes, you could use an
on the release step to run it only for tags. |
Beta Was this translation helpful? Give feedback.
-
Thanks, I ended up just changing it to a trigger on tag |
Beta Was this translation helpful? Give feedback.
It’s not about the job, it’s about the workflow trigger. You currently have this:
That means the workflow will run if you push the
dev
branch, andgithub.ref
will always berefs/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:tag
k…