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
|
||||
jobs:
|
||||
add-comment:
|
||||
if: (github.event.pull_request.label == 'ok-to-test' && \
|
||||
github.event.pull_request.merged != 'true') || \
|
||||
(github.event.pull_request.action == 'opened' && \
|
||||
if: >
|
||||
(github.event.pull_request.label == 'ok-to-test' &&
|
||||
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
|
||||
permissions:
|
||||
|
Loading…
Reference in New Issue
Block a user