Skip to content

How to fetch tag message in github actions #27155

Answered by nitin-jci
nitin-jci asked this question in Actions
Discussion options

You must be logged in to vote

So, I tried to increasing the fetch-depth as well by setting it up as 0 at checkout step. But that didn’t help even. However, I have used the following command before the command that you helped me with and it worked. :slight_smile:

git fetch --depth=1 origin +refs/tags/:refs/tags/

So, final solution is :

git fetch --depth=1 origin +refs/tags/*:refs/tags/*
git tag -l --format='%(contents:subject)' 1.0.0

Replies: 5 comments

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
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants