Skip to content

Instantly share code, notes, and snippets.

@therightstuff
Created October 2, 2022 15:13
Show Gist options
  • Save therightstuff/dcf8c9f0ba2aee661f71be115c9d0747 to your computer and use it in GitHub Desktop.
Save therightstuff/dcf8c9f0ba2aee661f71be115c9d0747 to your computer and use it in GitHub Desktop.
How To Display The CircleCI Orb Versions In Use
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 >>
> #!/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