Skip to content

Commit

Permalink
pin-circleci-cli-version: CircleCI CLI has a bug (#42)
Browse files Browse the repository at this point in the history
* pin-circleci-cli-version: CircleCI CLI has a bug

* pin-circleci-cli-version: Comment out other work

---------

Co-authored-by: Emma Doyle <[email protected]>
  • Loading branch information
emmeowzing and Emma Doyle authored Mar 30, 2023
1 parent 14ea5b1 commit 840b669
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/jobs/continue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ parameters:
description: A script to run after checkout and before any continuation logic. Script should have a shebang and executable.
type: string
default: ''
# CircleCI CLI orb.
circleci-cli-version:
description: Version of the CircleCI CLI to install. (Cf. https://github.com/CircleCI-Public/circleci-cli/releases.)
type: string
default: v0.1.23845
steps:
- checkout
- when:
Expand All @@ -121,7 +126,8 @@ steps:
command: |+
curl -sSL https://github.com/mikefarah/yq/releases/download/<< parameters.yq-version >>/yq_linux_amd64 -o yq
sudo install yq /usr/local/bin/yq
- circleci/install
- circleci/install:
version: << parameters.circleci-cli-version >>
- filter:
modules: << parameters.modules >>
modules-filtered: << parameters.modules-filtered >>
Expand Down
12 changes: 12 additions & 0 deletions src/scripts/filter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ else
_CIRCLE_ORGANIZATION="$SH_CIRCLE_ORGANIZATION"
fi


# ##
# # Recursively eval-echo any environment variables that start with SH_*
# function sh_eval()
# {
# if [ $# -ne 1 ]; then
# printf "Function \"sh_eval\" expected at least 1 argument: environment variable name." >&2
# exit 1
# fi
# }


# CircleCI API token should be set.
if [ -z "$_CIRCLE_TOKEN" ]; then
printf "Must set CircleCI token for successful authentication.\\n" >&2
Expand Down

0 comments on commit 840b669

Please sign in to comment.