Skip to content

Commit 6c6e4ba

Browse files
authored
chore: [REL-4161] make the circleci orb check more reliable (#559)
Orb check caused the action to [fail](https://github.com/launchdarkly/ld-find-code-refs/actions/runs/16807638943/job/47604213552#step:7:679) last time. The way we were doing the check was not great as it pulls every single public Orb and greps for the coderefs orb with the version we're looking for. I tried that locally and verified that it doesn't find the orb (even though it exists). I also tried the updated orb check locally, which is way more efficient and does find the Orb we're looking for. <!-- ld-jira-link --> --- Related Jira issue: [REL-4161: Migrate ld-find-code-refs from Releaser to GHA](https://launchdarkly.atlassian.net/browse/REL-4161) <!-- end-ld-jira-link -->
1 parent 25d9b55 commit 6c6e4ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/release/targets/circleci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ publish_circleci() (
6060
install_circleci
6161
validate_circleci_orb_config
6262

63-
if circleci orb list | grep launchdarkly/ld-find-code-refs@$LD_RELEASE_VERSION; then
63+
if circleci orb info "launchdarkly/ld-find-code-refs@$LD_RELEASE_VERSION" >/dev/null 2>&1; then
6464
echo "Version exists; skipping publishing CircleCI Orb"
6565
else
6666
echo "Live run: will publish orb to production circleci repo."

0 commit comments

Comments
 (0)