Skip to content

Results

Results #41

Workflow file for this run

name: Results
on:
workflow_run:
workflows: [CI]
types:
- completed
permissions:
checks: write
jobs:
results:
name: Test Results
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion != 'skipped' }}
steps:
- name: Report test results
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.checks.create({
name: 'results',
head_sha: '${{ github.event.workflow_run.head_sha }}',
status: 'completed',
conclusion: '${{ github.event.workflow_run.conclusion == 'success' && 'success' || 'failure' }}',
output: {
title: 'Test Results',
summary: 'Results: ${{ github.event.workflow_run.conclusion }}'
},
owner: context.repo.owner,
repo: context.repo.repo
})