feat: allow for clean tag pushing#364
Conversation
|
Follow up for my initial request #360 (reply in thread) |
|
Thanks for the taking the time to create a PR for this. I will take a closer look in the coming days (currently sick and not on my computer). At first glance, I think looks good. I will definitely write a few Bats tests for this, so future other releases won't break this functionality. |
stefanzweifel
left a comment
There was a problem hiding this comment.
Sorry for my late reply here. Life got in the way.
Looks good to me, I will merge this now but will push some changes in a separate PR. As you've created this PR from a fork in an organisation, I can't push my changes to the PR. (Not your faults, this is a long standing issue of GitHub itself: https://github.com/orgs/community/discussions/5634)
One change is renaming the option from git_tag_only to create_git_tag_only. I've also added some tests.
This PR contains the code change to allow this action to be invoked for performing a clean tag & push.
By clean I mean to commits are added, and no file changes are staged.
It is meant to be used in CD systems, where we wish to alter the tag, without allowing automation entities to modify the source code (anti-pattern). This action can now be used a the de-facto standard for perform git operations in a pipeline / automations.