-
Notifications
You must be signed in to change notification settings - Fork 76
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
Automatic update examples with correct version of the orb #134
Comments
I am interested. Highly considering this. A few questions / considerations.
I think this is feasible. The publish job would use the CircleCI tag when publishing the orb to make an on-the-fly replacement of the template text. I think an expectation would need to be set that this is simply using the tag version in the pipeline and would only be valid on the orb being built, and should not be used on another orb. Examplesusage:
version: 2.1
orbs:
my-orb: my-namespace/my-orb@<< orb.prod.version >> usage:
version: 2.1
orbs:
my-orb: my-namespace/my-orb@<< orb.prod.version >>
jq: circleci/jq@<< orb.prod.version >> It should be possible to warn the user if we know the orb name and namespace, and ensure it is only used on matching lines. |
Sorry for not replying, I totally forgot about this issue ! My comments on your points:
|
Is this something that is being worked on? |
Describe Request:
It would be great if we could use a template value/variable to always have the examples show the correct version of the orb.
Examples:
Instead of writing the examples like this:
We could do something like this:
Supporting Documentation Links:
The text was updated successfully, but these errors were encountered: