I want to print the current git Tag's message in a Github Action.
If I run the following locally:
git tag -l --sort=-taggerdate --format='%(contents)' $(git describe --tags $(git branch --show-current) )
It prints the tag msg:
v1.1.1-155
* Bug fixes
However when running the Github Action, it prints the latest commit's message.
How can I make Github Actions print the tag and not the commit?
The build.yml trigger for the Action is:
on:
push:
tags:
- '*'