-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add report check status to Test Results (#3856)
Add check status.
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 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 |
---|---|---|
|
@@ -59,3 +59,18 @@ jobs: | |
Check the artifacts for details." | ||
exit 1 | ||
fi | ||
# For PR builds triggered from comment builds, the GITHUB_REF is set to main | ||
# so the checks aren't automatically associated with the PR | ||
# If prHeadSha is specified then explicity mark the checks for that SHA | ||
- name: Report check status | ||
if: github.event.workflow_run.head_sha != '' | ||
uses: LouisBrunner/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
# the name must be identical to the one received by the real job | ||
sha: ${{ github.event.workflow_run.head_sha }} | ||
name: "Test Results" | ||
status: "completed" | ||
conclusion: ${{ github.event.workflow_run.conclusion }} | ||
details_url: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" |