ad-m / github-push-action

GitHub actions to push back to repository eg. updated code
MIT License
1.21k stars 230 forks source link

Feature Request: Push only the tag, not branch #153

Closed ibexa-yuna closed 5 months ago

ibexa-yuna commented 1 year ago

Hi,

I'm trying to utilize this action as the last step in my release workflow. As part of that workflow I need to push only the tag, as I have no need for a separate branch, but also I would like not to have tags on the branch I'm making it, as this branch is a "skeleton one" i.e. requires preparation before tagging, thus tags on it don't look good.

I'm reading the start.sh code and it seems there is no way to push just the tag I've just created, without pushing the branch.

https://github.com/ad-m/github-push-action/blob/master/start.sh#L52 HEAD:$INPUT_BRANCH is a branch notation, thus even if I input branch as my tag I will actually push both my tag and a branch with the same name as my tag.

ZPascal commented 1 year ago

Hi @ibexa-yuna, I understand the case and it sounds valid. Do you wanna handle it on your own and contribute it back to this repository or should I prepare the corresponding small PR?

ibexa-yuna commented 1 year ago

I would appreciate the 2-nd option, as I will not be able to replicate the same coding style as you have.

ZPascal commented 1 year ago

Okay @ibexa-yuna, I think I can prepare the new feature in the next few days.