Skip to content

Commit

Permalink
Add checkout_self parameter to prevent additional checkouts (#221)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
apop5 authored Jul 19, 2023
1 parent 15d494e commit 1a33763
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Steps/PublishCodeCoverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,17 @@
# SPDX-License-Identifier: BSD-2-Clause-Patent
##

parameters:
- name: checkout_self
displayName: Perform self checkout step
type: boolean
default: true

steps:
- checkout: self
clean: true
fetchDepth: 1
- ${{ if eq(parameters.checkout_self, true) }}:
- checkout: self
clean: true
fetchDepth: 1

#
# Download the build
Expand Down

0 comments on commit 1a33763

Please sign in to comment.