From: Kefu Chai Date: Sat, 6 Mar 2021 16:32:42 +0000 (+0800) Subject: .github: correct the regex in mileston workflow X-Git-Tag: v17.1.0~2695^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c5f6d15e36fdd019196a1520525382f73f276f14;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 --- diff --git a/.github/milestone.yml b/.github/milestone.yml index e5cd0b24c56a..d42069501011 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 db8aa86ac66b..3c37a42db2b8 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