-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: split check run creation into separate jobs
Co-Authored-By: Aaron <AJ> Steers <[email protected]>
- Loading branch information
1 parent
56856d7
commit c5bf0c8
Showing
1 changed file
with
19 additions
and
9 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 |
---|---|---|
|
@@ -8,33 +8,43 @@ on: | |
- '.github/workflows/dummy_check_result.yml' | ||
|
||
jobs: | ||
failure_check: | ||
name: "Dummy Job" | ||
main_job: | ||
name: "Main Job" | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
check_id: ${{ steps.create_check.outputs.check_id }} | ||
permissions: | ||
checks: write | ||
contents: read | ||
steps: | ||
- name: Create Custom Check Run | ||
- name: Create Initial Check Run | ||
id: create_check | ||
uses: LouisBrunner/[email protected] | ||
with: | ||
token: ${{ github.token }} | ||
name: "Custom Test Report" | ||
name: "Test Results (Custom)" | ||
status: "in_progress" | ||
output: | | ||
{ | ||
"title": "Test Report", | ||
"summary": "Running test check..." | ||
"title": "Test Results", | ||
"summary": "Running tests..." | ||
} | ||
- name: Sleep for a moment | ||
run: sleep 5 | ||
|
||
- name: Update Custom Check Run | ||
update_check: | ||
needs: main_job | ||
name: "Update Check" | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
checks: write | ||
contents: read | ||
steps: | ||
- name: Update Check Run | ||
uses: LouisBrunner/[email protected] | ||
with: | ||
token: ${{ github.token }} | ||
name: "Custom Test Report" | ||
check_id: ${{ needs.main_job.outputs.check_id }} | ||
status: "completed" | ||
conclusion: "failure" | ||
details_url: "https://www.google.com/search?q=test-failure" | ||
|