Skip to content

Commit

Permalink
use commit sha instead of fully formed ref
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Jun 3, 2024
1 parent 2fed12f commit d1ec8b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ on:
runner-os:
type: string
required: true
ref-to-build:
sha-to-build:
type: string
required: false
default: ${{ github.ref }}
default: ${{ github.sha }}
unoptimized:
type: boolean
required: false
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
# 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
run: echo STATUS_CHECK_COMMIT_SHA=${{ inputs.ref-to-build != '' && inputs.ref-to-build || github.sha }} >> $GITHUB_ENV

- name: Show job status for commit
uses: myrotvorets/[email protected]
Expand Down

0 comments on commit d1ec8b2

Please sign in to comment.