diff --git a/.github/workflows/export-to-branch.yml b/.github/workflows/export-to-branch.yml index 3e04d3cc..013a8b7c 100644 --- a/.github/workflows/export-to-branch.yml +++ b/.github/workflows/export-to-branch.yml @@ -38,7 +38,7 @@ jobs: - name: Initialize Solution If DNE run: | - if [[ ! -d "./Solutions/${{ github.event.inputs.solution_name }}" ]]; then + if (!(Test-Path -Path "./Solutions/${{ github.event.inputs.solution_name }}"')) { pac solution init --publisher-name PowerAccelerator --publisher-prefix mpa --outputDirectory ./YOURNAMEHERE $cdsprojFilePath = "./Solutions/${{ github.event.inputs.solution_name }}/${{ github.event.inputs.solution_name }}.cdsproj" [xml]$xmlDoc = Get-Content $cdsprojFilePath @@ -48,7 +48,7 @@ jobs: $propertyGroup.AppendChild($solutionPackageType) $xmlContent.Project.AppendChild($propertyGroup) $xmlDoc.Save($cdsprojFilePath) - fi + } - name: Sync Solution from Environment run: |