From: Kefu Chai Date: Sat, 6 Mar 2021 16:32:42 +0000 (+0800) Subject: .github: correct the regex in mileston workflow X-Git-Tag: v14.2.18~4^2~4 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=70c15e62a156edfa2064964768e3fc2e7678c73f;p=ceph.git .github: correct the regex in mileston workflow 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 (cherry picked from commit c5f6d15e36fdd019196a1520525382f73f276f14) --- diff --git a/.github/milestone.yml b/.github/milestone.yml index e5cd0b24c56a0..d420695010119 100644 --- a/.github/milestone.yml +++ b/.github/milestone.yml @@ -1,6 +1,6 @@ base-branch: - - "luminous" - - "nautilus" - - "octopus" - - "pacific" - - "quincy" + - "(luminous)" + - "(nautilus)" + - "(octopus)" + - "(pacific)" + - "(quincy)" diff --git a/.github/workflows/milestone.yml b/.github/workflows/milestone.yml index db8aa86ac66be..3c37a42db2b8e 100644 --- a/.github/workflows/milestone.yml +++ b/.github/workflows/milestone.yml @@ -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