]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
.github/workflows: move milestone.yml into labeler.yml
authorKefu Chai <kchai@redhat.com>
Sun, 7 Mar 2021 11:21:25 +0000 (19:21 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 8 Mar 2021 19:50:35 +0000 (03:50 +0800)
no need to have two actions triggered by the same event.

we could backport this labeler.yml to LTS branches.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 98b90189791d3f4d2524fd829edb616d0ffd94f7)

.github/workflows/labeler.yml
.github/workflows/milestone.yml [deleted file]

index 635b7757d984c56647936cac7a9f561a96368651..c39b24c732463c0b932a15e750aaa4ab33c05726 100644 (file)
@@ -1,11 +1,15 @@
 ---
-name: "Pull Request Labeler"
+name: "Pull Request Triage"
 on: pull_request_target
 jobs:
-  labeler:
+  pr-triage:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/labeler@main
         with:
           sync-labels: ''
           repo-token: "${{ secrets.GITHUB_TOKEN }}"
+      - uses: iyu/actions-milestone@v1
+        with:
+          configuration-path: .github/milestone.yml
+          repo-token: "${{ secrets.GITHUB_TOKEN }}"
diff --git a/.github/workflows/milestone.yml b/.github/workflows/milestone.yml
deleted file mode 100644 (file)
index 3c37a42..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
----
-name: "Pull Request Set Milestone"
-on: pull_request_target
-jobs:
-  milestone:
-    runs-on: ubuntu-latest
-    steps:
-      - uses: iyu/actions-milestone@v1
-        with:
-          configuration-path: .github/milestone.yml
-          repo-token: "${{ secrets.GITHUB_TOKEN }}"