-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: simplify dummy workflow to single failure check
Co-Authored-By: Aaron <AJ> Steers <[email protected]>
- Loading branch information
Showing
1 changed file
with
15 additions
and
21 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,44 +8,38 @@ on: | |
- '.github/workflows/dummy_check_result.yml' | ||
|
||
jobs: | ||
success_check: | ||
name: "Dummy Job (success)" | ||
failure_check: | ||
name: "Dummy Job" | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
checks: write | ||
contents: read | ||
steps: | ||
- name: Create Success Check Run | ||
- name: Create Initial Check Run | ||
uses: LouisBrunner/[email protected] | ||
with: | ||
token: ${{ github.token }} | ||
name: "Dummy Check (success custom)" | ||
status: "completed" | ||
conclusion: "success" | ||
details_url: "https://www.google.com/search?q=success" | ||
name: "Dummy Check" | ||
status: "in_progress" | ||
output: | | ||
{ | ||
"title": "Success Check", | ||
"summary": "This is a dummy success check." | ||
"title": "Test Check", | ||
"summary": "Running test check..." | ||
} | ||
failure_check: | ||
name: "Dummy Job (fail)" | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
checks: write | ||
contents: read | ||
steps: | ||
- name: Create Failure Check Run | ||
- name: Sleep for a moment | ||
run: sleep 5 | ||
|
||
- name: Update Check Run with Details URL | ||
uses: LouisBrunner/[email protected] | ||
with: | ||
token: ${{ github.token }} | ||
name: "Dummy Check (fail custom)" | ||
name: "Dummy Check" | ||
status: "completed" | ||
conclusion: "failure" | ||
details_url: "https://www.google.com/search?q=failed" | ||
details_url: "https://www.google.com/search?q=test-failure" | ||
output: | | ||
{ | ||
"title": "Failure Check", | ||
"summary": "This is a dummy failure check." | ||
"title": "Test Failed", | ||
"summary": "This is a test failure check with custom details URL." | ||
} |