Skip to content

Commit

Permalink
Fix case of empty windows repos file
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Jan 2, 2025
1 parent 2028254 commit 88f1139
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/reusable-ros-tooling-win-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ jobs:
- name: Set windows dependencies variable
id: set_windows_dependencies
run: |
if (Test-Path ${{ env.repo_path }}/${{ inputs.windows_dependencies }}) {
if (${{ inputs.windows_dependencies }} -ne '' -and Test-Path ${{ env.repo_path }}/${{ inputs.windows_dependencies }}) {
Write-Output "Windows repos file found"
"repo_file=${{ env.repo_path }}/${{ inputs.windows_dependencies }}" | Out-File -FilePath $Env:GITHUB_OUTPUT -Append
} else {
Write-Output "No local repos file found"
"repo_file=" | Out-File -FilePath $Env:GITHUB_OUTPUT -Append
}
} else {
Write-Output "No windows dependencies provided or file not found"
"repo_file=" | Out-File -FilePath $Env:GITHUB_OUTPUT -Append
}
- uses: ros-tooling/action-ros-ci@0.3.15
env:
Expand Down

0 comments on commit 88f1139

Please sign in to comment.