ci: do not leave testing comments on merged PRs

A PR with status `github.event.pull_request.merged == true` does not
need to be tested again.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2022-11-11 12:13:18 +01:00 committed by mergify[bot]
parent c9ccbf29bb
commit 38c4832665

View File

@ -10,7 +10,8 @@ on:
- labeled
jobs:
add-comment:
if: github.event.label.name == 'ok-to-test'
# yamllint disable-line rule:line-length
if: github.event.label.name == 'ok-to-test' && github.event.pull_request.merged != 'true'
runs-on: ubuntu-latest
permissions:
pull-requests: write