Skip to content

Commit 1a33763

Browse files
authored
Add checkout_self parameter to prevent additional checkouts (#221)
A specific container that does checkout prior to running mu_devops runs into problems with multiple checkout statements. It places the repo under multiple directories. Adding a parameter to prevent checkout of the repo again for the code coverage step.
1 parent 15d494e commit 1a33763

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

Steps/PublishCodeCoverage.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@
55
# SPDX-License-Identifier: BSD-2-Clause-Patent
66
##
77

8+
parameters:
9+
- name: checkout_self
10+
displayName: Perform self checkout step
11+
type: boolean
12+
default: true
13+
814
steps:
9-
- checkout: self
10-
clean: true
11-
fetchDepth: 1
15+
- ${{ if eq(parameters.checkout_self, true) }}:
16+
- checkout: self
17+
clean: true
18+
fetchDepth: 1
1219

1320
#
1421
# Download the build

0 commit comments

Comments
 (0)