]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
.github: correct the regex in mileston workflow
authorKefu Chai <kchai@redhat.com>
Sat, 6 Mar 2021 16:32:42 +0000 (00:32 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 8 Mar 2021 19:50:34 +0000 (03:50 +0800)
also use pull_request_target event so the action is run in the
context of the base of the pull request. this helps us to overcome
the "Resource not accessible by integration" issue where the action
is run in the context of the pull request.

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

.github/milestone.yml
.github/workflows/milestone.yml

index e5cd0b24c56a07d10e77ae3366691b9e6b08654d..d420695010119f877909a913b728a436cc9283f3 100644 (file)
@@ -1,6 +1,6 @@
 base-branch:
-  - "luminous"
-  - "nautilus"
-  - "octopus"
-  - "pacific"
-  - "quincy"
+  - "(luminous)"
+  - "(nautilus)"
+  - "(octopus)"
+  - "(pacific)"
+  - "(quincy)"
index db8aa86ac66be665bfca966209fb4e1718226dea..3c37a42db2b8edd5d02f068e311bb35ace999d58 100644 (file)
@@ -1,9 +1,6 @@
 ---
-name: "Pull Request Add Milestone"
-on:
-  pull_request:
-    types:
-      - opened
+name: "Pull Request Set Milestone"
+on: pull_request_target
 jobs:
   milestone:
     runs-on: ubuntu-latest