Skip to content

Commit

Permalink
Added folder checks
Browse files Browse the repository at this point in the history
  • Loading branch information
vchelaru committed Mar 27, 2024
1 parent c6b68d1 commit b0dafbd
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/Engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,25 @@ jobs:
FORMS: FlatRedBall\Engines\Forms\FlatRedBall.Forms
runs-on: windows-latest
steps:
- name: Directory listing

- name: Check if directory exists
run: |
Get-ChildItem -Path . -Recurse -ErrorAction SilentlyContinue -Force
$FolderPath = '.\FlatRedBall\Engines\Forms\FlatRedBall.Forms'
if (Test-Path -Path $FolderPath) {
Write-Host "Directory exists at $FolderPath"
} else {
Write-Host "Directory does not exist at $FolderPath"
}
$FolderPath2 = 'FlatRedBall\Engines\Forms\FlatRedBall.Forms'
if (Test-Path -Path $FolderPath2) {
Write-Host "Directory exists at $FolderPath2"
} else {
Write-Host "Directory does not exist at $FolderPath2"
}
shell: pwsh
# - name: Directory listing
# run: |
# Get-ChildItem -Path . -Recurse -ErrorAction SilentlyContinue -Force
- name: Copy libs
run: |
xcopy /E /I "${{ env.FORMS }}\FlatRedBall.Forms\bin\DesktopGL\Debug\*" ${{ env.TEMPLATES }}\FlatRedBallDesktopGlTemplate\FlatRedBallDesktopGlTemplate\Libraries\DesktopGl\Debug
Expand Down

0 comments on commit b0dafbd

Please sign in to comment.