Skip to content

Commit 598b35a

Browse files
authored
feature: Add method parameter to checkout_and_version (#237)
* feature: Add `method` parameter to `checkout_and_version` * bump: codacy-orbs * bump: circleci/circleci-cli image
1 parent 773f7f5 commit 598b35a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
version: 2.1
22

33
orbs:
4-
codacy: codacy/base@12.1.3
4+
codacy: codacy/base@12.2.0
55

66
references:
77
circleci_job: &circleci_job
88
docker:
9-
- image: circleci/circleci-cli:0.1.29936
9+
- image: circleci/circleci-cli:0.1.33494
1010
working_directory: ~/workdir
1111

1212
lint_job: &lint_job

src/jobs/checkout_and_version.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,16 @@ parameters:
2525
type: string
2626
default: ""
2727
description: Version prefix ("v" to tag versions like `v1.0.0`).
28+
method:
29+
type: string
30+
default: "full"
31+
description: Checkout method. Valid options include `blobless` and `full`.
2832

2933
executor: versioning
3034

3135
steps:
32-
- checkout
36+
- checkout:
37+
method: <<parameters.method>>
3338

3439
- run:
3540
name: Set version

0 commit comments

Comments
 (0)