ci: github.event.pull_request.merged is a boolean, not a string

With the updates to the pull-request-commenter, all strings were placed
within `'` to prevent syntax issues. It seems that
`github.event.pull_request.merged` really is a boolean (or `null`), and
not a string.

Doc: https://docs.github.com/en/webhooks-and-events/ ("payloads" section)
Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
Niels de Vos 2023-05-31 10:27:43 +02:00 committed by mergify[bot]
parent b804181a3d
commit 360df61eb0

View File

@ -13,7 +13,7 @@ jobs:
add-comment:
if: >
(github.event.pull_request.label == 'ok-to-test' &&
github.event.pull_request.merged != 'true') ||
github.event.pull_request.merged != true) ||
(github.event.pull_request.action == 'opened' &&
contains(github.event.pull_request.labels.*.name,'ok-to-test'))
runs-on: ubuntu-latest