Created
October 2, 2022 15:13
-
-
Save therightstuff/dcf8c9f0ba2aee661f71be115c9d0747 to your computer and use it in GitHub Desktop.
How To Display The CircleCI Orb Versions In Use
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2.1 | |
orbs: | |
my_orb: &my_orb_version my_namespace/my_orb@0.1.0 | |
workflows: | |
my_workflow: | |
jobs: | |
- my_orb/audit: | |
# passes the fully qualified namespace/orb@version | |
my_orb_version: *my_orb_version | |
jobs: | |
my_orb/audit: | |
docker: | |
# see https://circleci.com/developer/images/image/cimg/base#image-tags | |
- image: cimg/base:edge | |
parameters: | |
my_orb_version: | |
type: string | |
default: "unknown" | |
steps: | |
- run: | |
command: echo << parameters.my_orb_version >> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> #!/bin/bash -eo pipefail | |
> echo my_namespace/my_orb@0.1.0 | |
my_namespace/my_orb@0.1.0 | |
CircleCI received exit code 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment