-
Notifications
You must be signed in to change notification settings - Fork 7
45 lines (42 loc) · 1.13 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
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:
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 Post-Job Check Run
uses: LouisBrunner/[email protected]
with:
token: ${{ github.token }}
name: "Test Report Link (Post-Job)"
status: completed
conclusion: failure
details_url: "https://www.google.com/search?q=test-failure"
output: |
{
"title": "Test Report",
"summary": "This check was created after the main job completed.\nClick 'Details' to view the test report."
}