-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (52 loc) · 1.37 KB
/
dummy_check_result.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Dummy Check Result
on:
pull_request:
branches:
- main
paths:
- '.github/workflows/dummy_check_result.yml'
jobs:
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 Initial Check Run
id: create_check
uses: LouisBrunner/[email protected]
with:
token: ${{ github.token }}
name: "Test Results (Custom)"
status: "in_progress"
output: |
{
"title": "Test Results",
"summary": "Running tests..."
}
- name: Sleep for a moment
run: sleep 5
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 }}
check_id: ${{ needs.main_job.outputs.check_id }}
status: "completed"
conclusion: "failure"
details_url: "https://www.google.com/search?q=test-failure"
output: |
{
"title": "Test Failed",
"summary": "This is a test failure check with custom details URL."
}