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

push git tag after `orb-tools/increment` #7

Closed
sue445 opened this Issue Nov 8, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@sue445

sue445 commented Nov 8, 2018

Hello.

I want to push the same tag as the orb'version

e.g.

#!/bin/bash -eo pipefail
circleci orb publish increment packed/orb.yml sue445/my-orb patch --token $CIRCLECI_API_TOKEN 
Orb `sue445/bundle-install` has been incremented to `sue445/my-orb@1.2.3`.
Please note that this is an open orb and is world-readable.

#### I want to run this!
# git tag -a 1.2.3 -m "Release 1.2.3"
# git push origin --tags

But there is no way to acquire the automatically incremented version 😢

Do you have a good idea or feature?

My workaround

https://github.com/sue445/circleci-orb-bundle-install/blob/0.1.0/.circleci/config.yml#L114-L125

Running orb-tools/publish when only pushed tag.

Although this works, but dirty way...

@ndintenfass

This comment has been minimized.

Contributor

ndintenfass commented Nov 8, 2018

You could run circleci orb info to get the latest in an additional step in your flow -- you might need to parse the payload manually, though it's probably a good idea we add some kind of flag to get just the version by itself.

@sue445

This comment has been minimized.

sue445 commented Nov 8, 2018

@ndintenfass Thank you! I'll try this.

@sue445 sue445 closed this Nov 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment