-
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: simplify dummy workflow to single failure check with clear URL note
Co-Authored-By: Aaron <AJ> Steers <[email protected]>
- Loading branch information
1 parent
b250851
commit f25e728
Showing
1 changed file
with
7 additions
and
22 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,38 +8,23 @@ on: | |
- '.github/workflows/dummy_check_result.yml' | ||
|
||
jobs: | ||
main_job: | ||
name: "Main Job" | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
run_id: ${{ steps.get_run.outputs.run_id }} | ||
steps: | ||
- name: Get Run ID | ||
id: get_run | ||
run: echo "run_id=${{ github.run_id }}" >> $GITHUB_OUTPUT | ||
- name: Simulate Work | ||
run: | | ||
echo "Doing some work..." | ||
sleep 5 | ||
post_check: | ||
needs: main_job | ||
name: "Post Check" | ||
failure_check: | ||
name: "Dummy Check (fail)" | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
checks: write | ||
contents: read | ||
steps: | ||
- name: Create Post-Job Check Run | ||
- name: Create Failure Check Run | ||
uses: LouisBrunner/[email protected] | ||
with: | ||
token: ${{ github.token }} | ||
name: "Test Report Link (Post-Job)" | ||
name: "Dummy Check (fail custom)" | ||
status: completed | ||
conclusion: neutral | ||
details_url: "https://www.google.com/search?q=test-neutral" | ||
conclusion: failure | ||
details_url: "https://www.google.com/search?q=failed" | ||
output: | | ||
{ | ||
"title": "Test Report", | ||
"summary": "Testing with neutral conclusion status.\nClick 'Details' to view the test report.\nExpected URL: https://www.google.com/search?q=test-neutral" | ||
"summary": "This is a dummy failure check.\nHTML Report URL: https://www.google.com/search?q=failed\n\nNote: The Details link above will go to the GitHub Actions run due to platform limitations." | ||
} |