Skip to content

Commit

Permalink
ci: try post-job check run creation to preserve details URL
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 bf16122 commit 6e19ef8
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/dummy_check_result.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,38 @@ on:
- '.github/workflows/dummy_check_result.yml'

jobs:
test_check:
name: "Test Check"
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"
runs-on: ubuntu-22.04
permissions:
checks: write
contents: read
steps:
- name: Create Independent Check Run
- name: Create Post-Job Check Run
uses: LouisBrunner/[email protected]
with:
token: ${{ github.token }}
name: "External Test Report Link"
name: "Test Report Link (Post-Job)"
status: completed
conclusion: failure
details_url: "https://www.google.com/search?q=test-failure"
output: |
{
"title": "External Test Report",
"summary": "Click 'Details' to view the external test report."
"title": "Test Report",
"summary": "This check was created after the main job completed.\nClick 'Details' to view the test report."
}

0 comments on commit 6e19ef8

Please sign in to comment.