github-tagger icon indicating copy to clipboard operation
github-tagger copied to clipboard

Add possibility to skip creating duplicate tag

Open Molnix888 opened this issue 5 years ago • 2 comments

Hi,

It would be great to add an option of skipping tag creation if the same already exists. It could help in situations when using automatic semantic versioning and only minor change occurs (e.g. in readme), so the app version doesn't really change, thus instead of failing the job, the step would just finish successfully skipping duplicate tag creation.

Thank you.

Molnix888 avatar Sep 27 '20 16:09 Molnix888

In the described situation, you can just ignore triggering builds when only text/doc files have been updated. Please take a look at https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#example-ignoring-paths.

But I'll still take a look if this can be done. It shouldn't hurt anyone. :)

tvdias avatar Oct 22 '20 08:10 tvdias

Thanks for that :)

As for the provided link, I know about that possibility, though it doesn't fully covers my workflow, e.g. I would want to trigger build in case of changes in tests, but I still wouldn't want to bump the version in the case. There's an option to avoid that by creating separate workflow files, but as they would mostly be the same, I'd like to avoid that.

Molnix888 avatar Oct 22 '20 20:10 Molnix888