ci: fix when sorted pr checks workflow is executed

This commit is contained in:
galargh 2024-04-22 12:34:08 +02:00 committed by Rod Vagg
parent 74172ba8f8
commit d0bbb0b20a

View File

@ -20,12 +20,12 @@ permissions:
pull-requests: write pull-requests: write
concurrency: 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 cancel-in-progress: true
jobs: jobs:
comment: 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 uses: ipdxco/sorted-pr-checks/.github/workflows/comment.yml@v1
with: with:
pull_number: ${{ github.event.inputs.pull_number || github.event.workflow_run.pull_requests[0].number }} pull_number: ${{ github.event.inputs.pull_number || github.event.workflow_run.pull_requests[0].number }}