mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +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,10 +11,11 @@ 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' && \
|
||||
contains(github.event.pull_request.labels.*.name,'ok-to-test'))
|
||||
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:
|
||||
pull-requests: write
|
||||
|
Loading…
Reference in New Issue
Block a user