mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
ci: use github.event.label.name
for check in pull-request-commenter
The `github.event.label.name` was replaced by `github.event.pull_request.label` in PR #3862. It seems that the value always is `null`, which causes the pull-request-commenter to skip the events for `ok-to-test` label additions. By using the original `github.event.label.name`, things work again as expected. Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
parent
1ab92441dd
commit
ba991cbb85
@ -12,7 +12,7 @@ on:
|
||||
jobs:
|
||||
add-comment:
|
||||
if: >
|
||||
(github.event.pull_request.label == 'ok-to-test' &&
|
||||
(github.event.label.name == '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'))
|
||||
|
Loading…
Reference in New Issue
Block a user