# github-workflows-kt


03/26/2023, 2:43 AM
yeah maybe tags are my best bet, I mainly just want it to be easier to update so if I just push my changes with an updated version GHA will automatically build and publish for me without me having to go in and create a tag with the same version etc.
🧵 2


03/26/2023, 3:43 AM
That's not really a question for this channel. This channel is about the Kotlin lib that can generate the GitHub Workflow Yaml file. So you need to find out how to do it in regular Yaml files and then you can do it with this lib the same way.
But you can probably have a run-step that compares the version with the version in the parent commit and set an output of that run-step, then have all following steps depend on that output being set to a specific value or something like that.

Adam S

03/26/2023, 9:53 AM
you could try it the other way around and determine the project’s version based on the current git tag & branch, so there’s no need to edit a file


03/26/2023, 11:06 AM
Oh my apologies, I read the title of this channel and assumed it was related to CI/CD. But thank you for providing insight on my question anyways, I appreciate it