mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
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:
parent
27dc4f0fde
commit
b804181a3d
@ -11,9 +11,10 @@ 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') ||
|
||||||
|
(github.event.pull_request.action == 'opened' &&
|
||||||
contains(github.event.pull_request.labels.*.name,'ok-to-test'))
|
contains(github.event.pull_request.labels.*.name,'ok-to-test'))
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
|
Loading…
Reference in New Issue
Block a user