2024-04-22 09:50:55 +00:00
|
|
|
name: Comment with sorted PR checks
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
pull_number:
|
|
|
|
description: 'Pull request number'
|
|
|
|
required: true
|
|
|
|
workflow_run:
|
|
|
|
workflows:
|
|
|
|
- Build
|
|
|
|
- Check
|
|
|
|
- CodeQL
|
|
|
|
- Test
|
|
|
|
types:
|
|
|
|
- requested
|
|
|
|
- completed
|
|
|
|
|
|
|
|
permissions:
|
2024-05-28 10:51:05 +00:00
|
|
|
actions: read
|
|
|
|
checks: read
|
2024-04-22 09:50:55 +00:00
|
|
|
pull-requests: write
|
|
|
|
|
|
|
|
concurrency:
|
2024-04-22 10:34:08 +00:00
|
|
|
group: ${{ github.workflow }}-${{ github.event.inputs.pull_number || github.event.workflow_run.pull_requests[0].number }}
|
2024-04-22 09:50:55 +00:00
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
comment:
|
2024-04-22 10:34:08 +00:00
|
|
|
if: github.event.inputs.pull_number || github.event.workflow_run.event == 'pull_request'
|
2024-04-22 09:50:55 +00:00
|
|
|
uses: ipdxco/sorted-pr-checks/.github/workflows/comment.yml@v1
|
|
|
|
with:
|
|
|
|
pull_number: ${{ github.event.inputs.pull_number || github.event.workflow_run.pull_requests[0].number }}
|
|
|
|
template: unsuccessful_only
|