Skip to content

Commit

Permalink
Use different conditional syntax for windows runner
Browse files Browse the repository at this point in the history
  • Loading branch information
roomrys committed Sep 5, 2024
1 parent 61fefc0 commit d09b3b0
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build_conda_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,18 @@ jobs:
# TODO(LM): change to == "true"
id: set-run-id
run: |
if [ "${{ env.RUN_BUILD_JOB }}" == "false" ]; then
echo "::set-output name=RUN_ID::${{ github.run_id }}"
if [[ "$RUNNER_OS" == "Windows" ]]; then
if ($env:RUN_BUILD_JOB -eq "false") {
echo "::set-output name=RUN_ID::$env:GITHUB_RUN_ID"
} else {
echo "::set-output name=RUN_ID::$env:RUN_ID"
}
else
echo "::set-output name=RUN_ID::${{ env.RUN_ID }}"
if [ "${{ env.RUN_BUILD_JOB }}" == "false" ]; then
echo "::set-output name=RUN_ID::${{ github.run_id }}"
else
echo "::set-output name=RUN_ID::${{ env.RUN_ID }}"
fi
fi
# https://github.com/actions/download-artifact?tab=readme-ov-file#usage
Expand Down

0 comments on commit d09b3b0

Please sign in to comment.