fix: ci: post sorted pr checks comments under PRs from forks

This commit is contained in:
galargh 2024-06-20 16:15:10 +01:00 committed by Rod Vagg
parent 6408709018
commit f21ccc6b7a

View File

@ -22,13 +22,13 @@ 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 }} group: ${{ github.workflow }}-${{ github.event.inputs.pull_number }}-${{ github.event.workflow_run.id }}
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
comment: comment:
if: github.event.inputs.pull_number || github.event.workflow_run.event == 'pull_request' 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@v2
with: with:
pull_number: ${{ github.event.inputs.pull_number || github.event.workflow_run.pull_requests[0].number }} pull_number: ${{ github.event.inputs.pull_number }}
template: unsuccessful_only template: unsuccessful_only