Skip to content

Commit

Permalink
ci: create gh workflow that updates sorted pr checks
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh committed Apr 9, 2024
1 parent e68b762 commit b4101f7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/sorted-pr-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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 }}

0 comments on commit b4101f7

Please sign in to comment.