ci: fix when sorted pr checks workflow is executed
This commit is contained in:
parent
74172ba8f8
commit
d0bbb0b20a
4
.github/workflows/sorted-pr-checks.yml
vendored
4
.github/workflows/sorted-pr-checks.yml
vendored
@ -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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user