mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-26 16:20:28 +00:00
ci: fix pr-commentor for merge queue draft pr
The mergify label copier used github-actions bot to add labels. Actions performed by github-actions bot do not trigger a workflow and hence pull-request-commentor was not working as expected. This commit modifies mergify label copier to use Cephcsi-bot to copy labels which then will be able to trigger action to add pr comments. Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
parent
848a8d8c8f
commit
40888f01b6
1
.github/workflows/mergify-copy-labels.yaml
vendored
1
.github/workflows/mergify-copy-labels.yaml
vendored
@ -15,3 +15,4 @@ jobs:
|
|||||||
uses: Mergifyio/gha-mergify-merge-queue-labels-copier@main
|
uses: Mergifyio/gha-mergify-merge-queue-labels-copier@main
|
||||||
with:
|
with:
|
||||||
additional-labels: 'ok-to-test'
|
additional-labels: 'ok-to-test'
|
||||||
|
token: ${{ secrets.CEPH_CSI_BOT_TOKEN }}
|
||||||
|
@ -8,14 +8,11 @@ on:
|
|||||||
- "release-v*"
|
- "release-v*"
|
||||||
types:
|
types:
|
||||||
- labeled
|
- labeled
|
||||||
- opened
|
|
||||||
jobs:
|
jobs:
|
||||||
add-comment:
|
add-comment:
|
||||||
if: >
|
if: >
|
||||||
(github.event.label.name == 'ok-to-test' &&
|
(github.event.label.name == 'ok-to-test' &&
|
||||||
github.event.pull_request.merged != true) ||
|
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
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
Loading…
Reference in New Issue
Block a user