ci: ci: create gh workflow that updates sorted pr checks (#11861)
* ci: create gh workflow that updates sorted pr checks * ci: use grouped_by_result template for pr checks sticky comment * chore: apply pr review suggestion
This commit is contained in:
parent
06761db7bf
commit
70e0767acf
32
.github/workflows/sorted-pr-checks.yml
vendored
Normal file
32
.github/workflows/sorted-pr-checks.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
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:
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.inputs.pull_number || github.event.workflow_run.pull_requests[0].number || 'unknown' }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
comment:
|
||||||
|
if: github.event.inputs.pull_number || github.event.workflow_run.pull_requests[0]
|
||||||
|
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
|
Loading…
Reference in New Issue
Block a user