Skip to content

Commit

Permalink
Merge pull request #36 from CircleCI-Public/PIPE-3643-optional-checkout
Browse files Browse the repository at this point in the history
PIPE-3643 Add checkout and workspace_path parameters
  • Loading branch information
Markl121 authored May 9, 2023
2 parents c044e99 + 7d57e7c commit 4aafd3f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
21 changes: 20 additions & 1 deletion src/jobs/continue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 >>
Expand Down
2 changes: 1 addition & 1 deletion src/tests/README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 4aafd3f

Please sign in to comment.