Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ibexa-yuna opened this issue Feb 10, 2023 · 3 comments · May be fixed by #154
Open

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

ibexa-yuna opened this issue Feb 10, 2023 · 3 comments · May be fixed by #154

Comments

@ibexa-yuna
Copy link

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
Copy link
Collaborator

ZPascal commented Feb 10, 2023

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
Copy link
Author

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

@ZPascal
Copy link
Collaborator

ZPascal commented Feb 10, 2023

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

@ZPascal ZPascal linked a pull request Feb 11, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants