Skip to content

Commit

Permalink
ci: simplify dummy workflow to single failure check with clear URL note
Browse files Browse the repository at this point in the history
Co-Authored-By: Aaron <AJ> Steers <[email protected]>
  • Loading branch information
devin-ai-integration[bot] and aaronsteers committed Jan 24, 2025
1 parent b250851 commit f25e728
Showing 1 changed file with 7 additions and 22 deletions.
29 changes: 7 additions & 22 deletions .github/workflows/dummy_check_result.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}

0 comments on commit f25e728

Please sign in to comment.