From b4101f748cda90d720ec72a051d00ed9ab1c1833 Mon Sep 17 00:00:00 2001 From: galargh Date: Tue, 9 Apr 2024 11:58:27 +0100 Subject: [PATCH] ci: create gh workflow that updates sorted pr checks --- .github/workflows/sorted-pr-checks.yml | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/sorted-pr-checks.yml diff --git a/.github/workflows/sorted-pr-checks.yml b/.github/workflows/sorted-pr-checks.yml new file mode 100644 index 0000000000..d78c831cde --- /dev/null +++ b/.github/workflows/sorted-pr-checks.yml @@ -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 }}