From d0bbb0b20ab1cfdac76ce478ea5e1a0488b174af Mon Sep 17 00:00:00 2001 From: galargh Date: Mon, 22 Apr 2024 12:34:08 +0200 Subject: [PATCH] ci: fix when sorted pr checks workflow is executed --- .github/workflows/sorted-pr-checks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sorted-pr-checks.yml b/.github/workflows/sorted-pr-checks.yml index 0c2b0ee8a..5d5101b41 100644 --- a/.github/workflows/sorted-pr-checks.yml +++ b/.github/workflows/sorted-pr-checks.yml @@ -20,12 +20,12 @@ permissions: pull-requests: write concurrency: - group: ${{ github.workflow }}-${{ github.event.inputs.pull_number || github.event.workflow_run.pull_requests[0].number || 'unknown' }} + group: ${{ github.workflow }}-${{ github.event.inputs.pull_number || github.event.workflow_run.pull_requests[0].number }} cancel-in-progress: true jobs: comment: - if: github.event.inputs.pull_number || github.event.workflow_run.pull_requests[0] + if: github.event.inputs.pull_number || github.event.workflow_run.event == 'pull_request' 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 }}