File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 2020 types :
2121 - completed
2222 branches :
23- - " pull-request/[0-9]+ "
23+ - " pull-request/** "
2424 - main
2525 - release-*
2626
2727jobs :
2828 e2e-tests :
2929 runs-on : linux-amd64-cpu4
3030 if : ${{ github.event.workflow_run.conclusion == 'success' }} && ${{ github.event.workflow_run.event == 'push' }}
31+ permissions :
32+ contents : read
33+ checks : write
34+ statuses : write
3135 steps :
3236 - name : Check out code
3337 uses : actions/checkout@v4
7680 path : ./e2e_logs/
7781 retention-days : 15
7882
83+ # This makes the result appear on the merged commit's Checks tab
84+ - name : Report status on merged commit
85+ if : always()
86+ uses : actions/github-script@v7
87+ with :
88+ script : |
89+ await github.rest.checks.create({
90+ owner: context.repo.owner,
91+ repo: context.repo.repo,
92+ name: 'End-to-end Tests',
93+ head_sha: '${{ github.event.workflow_run.head_sha }}',
94+ status: 'completed',
95+ conclusion: '${{ job.status }}' // success | failure | cancelled
96+ })
97+
7998 - name : Send Slack alert notification
8099 id : slack
81100 if : false
You can’t perform that action at this time.
0 commit comments