Skip to content

Commit

Permalink
Try to merge set run id for all OS's
Browse files Browse the repository at this point in the history
specifying bash shell
  • Loading branch information
roomrys committed Sep 5, 2024
1 parent 67539f9 commit 2f62c7f
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/build_conda_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,25 +133,11 @@ jobs:
with:
python-version: ${{ matrix.pyver }}

- name: Set run id for conda package download (Windows)
if: runner.os == 'Windows'
id: set-run-id-win
run: |
if ($env:RUN_BUILD_JOB -eq "true") {
echo "RUN_ID=$env:GITHUB_RUN_ID" >> $GITHUB_OUTPUT
} else {
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
run: |
if [ "${{ env.RUN_BUILD_JOB }}" == "true" ]; then
echo "RUN_ID=${{ github.run_id }}" >> $GITHUB_OUTPUT
else
echo "RUN_ID=${{ env.RUN_ID }}" >> $GITHUB_OUTPUT
fi
- name: Use current run id for conda package download
shell: bash -l {0}
# TODO(LM): Change to true
if: env.RUN_BUILD_JOB == 'false'
run: echo "RUN_ID=${{ github.run_id }}" >> $GITHUB_ENV

# https://github.com/actions/download-artifact?tab=readme-ov-file#usage
- name: Download conda package artifact
Expand All @@ -160,7 +146,7 @@ jobs:
with:
name: sleap-build-${{ matrix.build-prefix }}
path: build
run-id: ${{ steps.set-run-id-not-win.outputs.RUN_ID || steps.set-run-id-win.outputs.RUN_ID }}
run-id: ${{ env.RUN_ID }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: List items in current directory
Expand Down

0 comments on commit 2f62c7f

Please sign in to comment.