ci: remove \ from GitHub Workflow if condition

Backslashes (`\`) cause issues in the `if` statment with GitHub
Workflows.

    Unexpected symbol: '\'. Located at position 53 within expression:
    (github.event.pull_request.label == 'ok-to-test' && \

Using the `>` YAML syntax to replace linebreaks with spaces should
address this problem.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
Niels de Vos 2023-05-30 16:24:16 +02:00 committed by mergify[bot]
parent 27dc4f0fde
commit b804181a3d

View File

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