From 1a337638b2f6062aced45fecfc77c1cbb584af9d Mon Sep 17 00:00:00 2001 From: Aaron <105021049+apop5@users.noreply.github.com> Date: Wed, 19 Jul 2023 12:52:41 -0700 Subject: [PATCH] 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. --- Steps/PublishCodeCoverage.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Steps/PublishCodeCoverage.yml b/Steps/PublishCodeCoverage.yml index ba451050..8317299c 100644 --- a/Steps/PublishCodeCoverage.yml +++ b/Steps/PublishCodeCoverage.yml @@ -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