mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
ci: fix pull-request-commentor workflow
Fix if condition in workflow to account for ok-to-test label on newly created prs. Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
parent
b157b1a7c2
commit
cf0fd2bfeb
@ -12,7 +12,10 @@ on:
|
||||
jobs:
|
||||
add-comment:
|
||||
# yamllint disable-line rule:line-length
|
||||
if: github.event.label.name == 'ok-to-test' && github.event.pull_request.merged != 'true'
|
||||
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