Skip to content

Commit

Permalink
Updated unix if statement to be powershell based.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryanb58 committed Jun 6, 2023
1 parent 6c7c130 commit 5ac60ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/export-to-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -48,7 +48,7 @@ jobs:
$propertyGroup.AppendChild($solutionPackageType)
$xmlContent.Project.AppendChild($propertyGroup)
$xmlDoc.Save($cdsprojFilePath)
fi
}
- name: Sync Solution from Environment
run: |
Expand Down

0 comments on commit 5ac60ac

Please sign in to comment.