Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Jun 3, 2024
1 parent f50653a commit 2fed12f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,17 @@ jobs:
run: echo "BUILD_IDENTIFIER=${{ matrix.python-tag }}-${{ inputs.platform-tag }}" >> $GITHUB_ENV
shell: bash

- name: Get commit sha to show status check
# The workflow_dispatch event does not have a ref-to-build input
# And when dereferencing a non-existent input, it will return an empty string
# We have to pass in a valid sha, so just use github.ref by default
run: echo STATUS_CHECK_COMMIT_SHA=${{ inputs.ref-to-build != '' && inputs.ref-to-build || github.ref }} >> $GITHUB_ENV

- name: Show job status for commit
uses: myrotvorets/[email protected]
if: ${{ github.event_name != 'push' && github.event_name != 'pull_request' }}
with:
sha: ${{ inputs.ref-to-build }}
sha: ${{ env.STATUS_CHECK_COMMIT_SHA }}
context: "Build wheels (${{ env.BUILD_IDENTIFIER }})"

- uses: actions/checkout@v4
Expand Down Expand Up @@ -164,6 +170,6 @@ jobs:
uses: myrotvorets/[email protected]
if: ${{ always() && github.event_name != 'push' && github.event_name != 'pull_request' }}
with:
sha: ${{ inputs.ref }}
sha: ${{ env.STATUS_CHECK_COMMIT_SHA }}
status: ${{ job.status }}
context: "Build wheels (${{ env.BUILD_IDENTIFIER }})"

0 comments on commit 2fed12f

Please sign in to comment.