-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1ec8b2
commit 38b310b
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,14 +73,17 @@ 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.sha }} >> $GITHUB_ENV | ||
run: echo COMMIT_SHA_FOR_STATUS_CHECK=${{ inputs.ref-to-build != '' && inputs.ref-to-build || github.sha }} >> $GITHUB_ENV | ||
|
||
- name: Create status check message | ||
run: echo STATUS_CHECK_MESSAGE="cibuildwheel (${{ env.BUILD_IDENTIFIER }})" >> $GITHUB_ENV | ||
|
||
- name: Show job status for commit | ||
uses: myrotvorets/[email protected] | ||
if: ${{ github.event_name != 'push' && github.event_name != 'pull_request' }} | ||
with: | ||
sha: ${{ env.STATUS_CHECK_COMMIT_SHA }} | ||
context: "Build wheels (${{ env.BUILD_IDENTIFIER }})" | ||
sha: ${{ env.COMMIT_SHA_FOR_STATUS_CHECK }} | ||
context: ${{ env.STATUS_CHECK_MESSAGE }} | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -170,6 +173,6 @@ jobs: | |
uses: myrotvorets/[email protected] | ||
if: ${{ always() && github.event_name != 'push' && github.event_name != 'pull_request' }} | ||
with: | ||
sha: ${{ env.STATUS_CHECK_COMMIT_SHA }} | ||
sha: ${{ env.COMMIT_SHA_FOR_STATUS_CHECK }} | ||
status: ${{ job.status }} | ||
context: "Build wheels (${{ env.BUILD_IDENTIFIER }})" | ||
context: ${{ env.STATUS_CHECK_MESSAGE }} |