Skip to content

Commit

Permalink
Update GITHUB_OUTPUT to share data between jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
finsberg committed Mar 10, 2023
1 parent 561c66f commit 40a7af6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/cling-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ jobs:
with:
python-version: "3.10"
- name: Trigger circleci build for ARM
id: aarch64-job-number
run: |
export JOB_NUMBER=$(python3 circleci.py job --token ${{ secrets.CIRCLE_API_TOKEN }})
echo "job_number=$JOB_NUMBER" >> $GITHUB_ENV
echo "job_number=$JOB_NUMBER" >> $GITHUB_OUTPUT
build_wheels:
name: Build wheels on ${{ matrix.cibw.build }}
Expand Down Expand Up @@ -153,7 +154,7 @@ jobs:

- name: Get wheel from CircleCI artifact
run: |
WHEEL_PATH=$(python circleci.py artifact --job-number ${{ env.job_number }})
export WHEEL_PATH=$(python circleci.py artifact --job-number ${{ steps.aarch64-job-number.outputs.job_number }})
echo "wheel_path=$WHEEL_PATH" >> $GITHUB_ENV
- uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 40a7af6

Please sign in to comment.