Skip to content

Commit

Permalink
ci: split check run creation into separate jobs
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 23, 2025
1 parent 56856d7 commit c5bf0c8
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/dummy_check_result.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c5bf0c8

Please sign in to comment.