codiform / gh-actions-usage

GitHub CLI Extension to display Github Actions Usage. Go version of gh-actuse.
18 stars 2 forks source link

Embed and Print Version? #8

Closed geoffreywiseman closed 1 year ago

geoffreywiseman commented 1 year ago

Is there any way to have the tag from the release process be incorporated in the build and visible in the output of the extension?

Need to play around with this to see what I can do and if I can't find a way, maybe ask in the cli discussions, see if anyone else has found something I missed.

Some examples of ways people incorporate versions into a Go executable:

geoffreywiseman commented 1 year ago

Just adding the commit hash for now. Sounds like BuildInfo() may add more support for tags or a local version or something, so I'm just going to use what's already in place for now and see where this leads.