diff --git a/src/jobs/continue.yml b/src/jobs/continue.yml index 60402a0..67cd859 100755 --- a/src/jobs/continue.yml +++ b/src/jobs/continue.yml @@ -15,9 +15,28 @@ parameters: type: string description: "The domain of the CircleCI installation - defaults to circleci.com. (Only necessary for CircleCI Server users)" default: "circleci.com" + checkout: + type: boolean + description: "Whether to run an optional checkout step before continuing" + default: true + workspace_path: + type: string + description: "Path to attach the workspace to" + default: "" steps: - - checkout + - when: + condition: + equal: [ true, << parameters.checkout >> ] + steps: + - checkout + - when: + condition: + not: + equal: [ "", << parameters.workspace_path >> ] + steps: + - attach_workspace: + at: << parameters.workspace_path >> - continue: configuration_path: << parameters.configuration_path >> parameters: << parameters.parameters >> diff --git a/src/tests/README.md b/src/tests/README.md index ccd0b07..074fec0 100644 --- a/src/tests/README.md +++ b/src/tests/README.md @@ -1,6 +1,6 @@ # tests/ -This is where your testing scripts for whichever language is embeded in your orb live, which can be executed locally and within a CircleCI pipeline prior to publishing. +This is where your testing scripts for whichever language is embedded in your orb live, which can be executed locally and within a CircleCI pipeline prior to publishing. # Testing Orbs