2022-10-25 10:24:08 +00:00
|
|
|
---
|
|
|
|
name: Add comment
|
|
|
|
# yamllint disable-line rule:truthy
|
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
branches:
|
|
|
|
- devel
|
|
|
|
- "release-v*"
|
|
|
|
types:
|
|
|
|
- labeled
|
|
|
|
jobs:
|
|
|
|
add-comment:
|
2023-05-30 14:24:16 +00:00
|
|
|
if: >
|
2023-06-01 09:06:20 +00:00
|
|
|
(github.event.label.name == 'ok-to-test' &&
|
2023-06-14 09:54:45 +00:00
|
|
|
github.event.pull_request.merged != true)
|
2022-10-25 10:24:08 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
pull-requests: write
|
|
|
|
steps:
|
|
|
|
- name: Add comment to trigger external storage tests for Kubernetes 1.24
|
2023-04-10 20:59:09 +00:00
|
|
|
uses: peter-evans/create-or-update-comment@v3
|
2022-10-25 10:24:08 +00:00
|
|
|
with:
|
2023-06-01 16:27:22 +00:00
|
|
|
token: ${{ secrets.CEPH_CSI_BOT_TOKEN }}
|
2022-10-25 10:24:08 +00:00
|
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
|
|
body: |
|
|
|
|
/test ci/centos/k8s-e2e-external-storage/1.24
|
|
|
|
|
2022-10-27 06:29:59 +00:00
|
|
|
- name: Add comment to trigger external storage tests for Kubernetes 1.25
|
2023-04-10 20:59:09 +00:00
|
|
|
uses: peter-evans/create-or-update-comment@v3
|
2022-10-27 06:29:59 +00:00
|
|
|
with:
|
2023-06-01 16:27:22 +00:00
|
|
|
token: ${{ secrets.CEPH_CSI_BOT_TOKEN }}
|
2022-10-27 06:29:59 +00:00
|
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
|
|
body: |
|
|
|
|
/test ci/centos/k8s-e2e-external-storage/1.25
|
|
|
|
|
2023-01-30 14:52:35 +00:00
|
|
|
- name: Add comment to trigger external storage tests for Kubernetes 1.26
|
2023-04-10 20:59:09 +00:00
|
|
|
uses: peter-evans/create-or-update-comment@v3
|
2023-01-30 14:52:35 +00:00
|
|
|
with:
|
2023-06-01 16:27:22 +00:00
|
|
|
token: ${{ secrets.CEPH_CSI_BOT_TOKEN }}
|
2023-01-30 14:52:35 +00:00
|
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
|
|
body: |
|
|
|
|
/test ci/centos/k8s-e2e-external-storage/1.26
|
|
|
|
|
2023-04-12 10:55:58 +00:00
|
|
|
- name: Add comment to trigger external storage tests for Kubernetes 1.27
|
|
|
|
uses: peter-evans/create-or-update-comment@v3
|
|
|
|
with:
|
2023-06-01 16:27:22 +00:00
|
|
|
token: ${{ secrets.CEPH_CSI_BOT_TOKEN }}
|
2023-04-12 10:55:58 +00:00
|
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
|
|
body: |
|
|
|
|
/test ci/centos/k8s-e2e-external-storage/1.27
|
|
|
|
|
2022-10-25 10:24:08 +00:00
|
|
|
- name: Add comment to trigger helm E2E tests for Kubernetes 1.24
|
2023-04-10 20:59:09 +00:00
|
|
|
uses: peter-evans/create-or-update-comment@v3
|
2022-10-25 10:24:08 +00:00
|
|
|
with:
|
2023-06-01 16:27:22 +00:00
|
|
|
token: ${{ secrets.CEPH_CSI_BOT_TOKEN }}
|
2022-10-25 10:24:08 +00:00
|
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
|
|
body: |
|
|
|
|
/test ci/centos/mini-e2e-helm/k8s-1.24
|
|
|
|
|
2022-10-27 06:29:59 +00:00
|
|
|
- name: Add comment to trigger helm E2E tests for Kubernetes 1.25
|
2023-04-10 20:59:09 +00:00
|
|
|
uses: peter-evans/create-or-update-comment@v3
|
2022-10-27 06:29:59 +00:00
|
|
|
with:
|
2023-06-01 16:27:22 +00:00
|
|
|
token: ${{ secrets.CEPH_CSI_BOT_TOKEN }}
|
2022-10-27 06:29:59 +00:00
|
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
|
|
body: |
|
|
|
|
/test ci/centos/mini-e2e-helm/k8s-1.25
|
|
|
|
|
2023-01-30 14:52:35 +00:00
|
|
|
- name: Add comment to trigger helm E2E tests for Kubernetes 1.26
|
2023-04-10 20:59:09 +00:00
|
|
|
uses: peter-evans/create-or-update-comment@v3
|
2023-01-30 14:52:35 +00:00
|
|
|
with:
|
2023-06-01 16:27:22 +00:00
|
|
|
token: ${{ secrets.CEPH_CSI_BOT_TOKEN }}
|
2023-01-30 14:52:35 +00:00
|
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
|
|
body: |
|
|
|
|
/test ci/centos/mini-e2e-helm/k8s-1.26
|
|
|
|
|
2023-04-12 10:55:58 +00:00
|
|
|
- name: Add comment to trigger helm E2E tests for Kubernetes 1.27
|
|
|
|
uses: peter-evans/create-or-update-comment@v3
|
|
|
|
with:
|
2023-06-01 16:27:22 +00:00
|
|
|
token: ${{ secrets.CEPH_CSI_BOT_TOKEN }}
|
2023-04-12 10:55:58 +00:00
|
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
|
|
body: |
|
|
|
|
/test ci/centos/mini-e2e-helm/k8s-1.27
|
|
|
|
|
2022-10-25 10:24:08 +00:00
|
|
|
- name: Add comment to trigger E2E tests for Kubernetes 1.24
|
2023-04-10 20:59:09 +00:00
|
|
|
uses: peter-evans/create-or-update-comment@v3
|
2022-10-25 10:24:08 +00:00
|
|
|
with:
|
2023-06-01 16:27:22 +00:00
|
|
|
token: ${{ secrets.CEPH_CSI_BOT_TOKEN }}
|
2022-10-25 10:24:08 +00:00
|
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
|
|
body: |
|
|
|
|
/test ci/centos/mini-e2e/k8s-1.24
|
|
|
|
|
2022-10-27 06:29:59 +00:00
|
|
|
- name: Add comment to trigger E2E tests for Kubernetes 1.25
|
2023-04-10 20:59:09 +00:00
|
|
|
uses: peter-evans/create-or-update-comment@v3
|
2022-10-27 06:29:59 +00:00
|
|
|
with:
|
2023-06-01 16:27:22 +00:00
|
|
|
token: ${{ secrets.CEPH_CSI_BOT_TOKEN }}
|
2022-10-27 06:29:59 +00:00
|
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
|
|
body: |
|
|
|
|
/test ci/centos/mini-e2e/k8s-1.25
|
|
|
|
|
2023-01-30 14:52:35 +00:00
|
|
|
- name: Add comment to trigger E2E tests for Kubernetes 1.26
|
2023-04-10 20:59:09 +00:00
|
|
|
uses: peter-evans/create-or-update-comment@v3
|
2023-01-30 14:52:35 +00:00
|
|
|
with:
|
2023-06-01 16:27:22 +00:00
|
|
|
token: ${{ secrets.CEPH_CSI_BOT_TOKEN }}
|
2023-01-30 14:52:35 +00:00
|
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
|
|
body: |
|
|
|
|
/test ci/centos/mini-e2e/k8s-1.26
|
|
|
|
|
2023-04-12 10:55:58 +00:00
|
|
|
- name: Add comment to trigger E2E tests for Kubernetes 1.27
|
2023-04-24 20:59:57 +00:00
|
|
|
uses: peter-evans/create-or-update-comment@v3
|
2023-04-12 10:55:58 +00:00
|
|
|
with:
|
2023-06-01 16:27:22 +00:00
|
|
|
token: ${{ secrets.CEPH_CSI_BOT_TOKEN }}
|
2023-04-12 10:55:58 +00:00
|
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
|
|
body: |
|
|
|
|
/test ci/centos/mini-e2e/k8s-1.27
|
|
|
|
|
2022-10-25 10:24:08 +00:00
|
|
|
- name: Add comment to trigger cephfs upgrade tests
|
2023-04-10 20:59:09 +00:00
|
|
|
uses: peter-evans/create-or-update-comment@v3
|
2022-10-25 10:24:08 +00:00
|
|
|
with:
|
2023-06-01 16:27:22 +00:00
|
|
|
token: ${{ secrets.CEPH_CSI_BOT_TOKEN }}
|
2022-10-25 10:24:08 +00:00
|
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
|
|
body: |
|
|
|
|
/test ci/centos/upgrade-tests-cephfs
|
|
|
|
|
|
|
|
- name: Add comment to trigger rbd upgrade tests
|
2023-04-10 20:59:09 +00:00
|
|
|
uses: peter-evans/create-or-update-comment@v3
|
2022-10-25 10:24:08 +00:00
|
|
|
with:
|
2023-06-01 16:27:22 +00:00
|
|
|
token: ${{ secrets.CEPH_CSI_BOT_TOKEN }}
|
2022-10-25 10:24:08 +00:00
|
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
|
|
body: |
|
|
|
|
/test ci/centos/upgrade-tests-rbd
|
2023-02-20 08:57:56 +00:00
|
|
|
|
|
|
|
- name: remove ok-to-test-label after commenting
|
|
|
|
uses: actions/github-script@v6
|
|
|
|
with:
|
2023-06-01 16:27:22 +00:00
|
|
|
github-token: ${{ secrets.CEPH_CSI_BOT_TOKEN }}
|
2023-02-20 08:57:56 +00:00
|
|
|
script: |
|
|
|
|
github.rest.issues.removeLabel({
|
2023-02-20 10:16:23 +00:00
|
|
|
issue_number: context.issue.number,
|
2023-02-20 08:57:56 +00:00
|
|
|
owner: context.repo.owner,
|
|
|
|
repo: context.repo.repo,
|
|
|
|
name: ["ok-to-test"]
|
|
|
|
})
|