Skip to content

Commit

Permalink
Test that current run id is used
Browse files Browse the repository at this point in the history
  • Loading branch information
roomrys committed Sep 5, 2024
1 parent 8b162ae commit 5000be9
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/build_conda_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- ".github/workflows/build_conda_ci.yml"

env:
RUN_BUILD_JOB: true
RUN_BUILD_JOB: false # TODO(LM): Change to "true"
RUN_ID: 10712122474

jobs:
Expand Down Expand Up @@ -136,21 +136,23 @@ jobs:
- name: Set run id for conda package download (Windows)
if: runner.os == 'Windows'
id: set-run-id-win
# TODO(LM): Change to "true"
run: |
if ($env:RUN_BUILD_JOB -eq "true") {
echo "::set-output name=RUN_ID::$env:GITHUB_RUN_ID"
if ($env:RUN_BUILD_JOB -eq "false") {
echo "RUN_ID=$env:GITHUB_RUN_ID" >> $GITHUB_OUTPUT
} else {
echo "::set-output name=RUN_ID::$env:RUN_ID"
echo "RUN_ID=$env:RUN_ID" >> $GITHUB_OUTPUT
}
- name: Set run id for conda package download (not Windows)
if: runner.os != 'Windows'
id: set-run-id-not-win
# TODO(LM): Change to "true"
run: |
if [ "${{ env.RUN_BUILD_JOB }}" == "true" ]; then
echo "::set-output name=RUN_ID::${{ github.run_id }}"
if [ "${{ env.RUN_BUILD_JOB }}" == "false" ]; then
echo "RUN_ID=${{ github.run_id }}" >> $GITHUB_OUTPUT
else
echo "::set-output name=RUN_ID::${{ env.RUN_ID }}"
echo "RUN_ID=${{ env.RUN_ID }}" >> $GITHUB_OUTPUT
fi
# https://github.com/actions/download-artifact?tab=readme-ov-file#usage
Expand Down

0 comments on commit 5000be9

Please sign in to comment.