From 1f79fdd60d4d0cada054995ca0b259c45c259d66 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 7 Mar 2021 19:21:25 +0800 Subject: [PATCH] .github/workflows: move milestone.yml into labeler.yml 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 (cherry picked from commit 98b90189791d3f4d2524fd829edb616d0ffd94f7) --- .github/workflows/labeler.yml | 8 ++++++-- .github/workflows/milestone.yml | 11 ----------- 2 files changed, 6 insertions(+), 13 deletions(-) delete mode 100644 .github/workflows/milestone.yml diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 635b7757d984c..c39b24c732463 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -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 index 3c37a42db2b8e..0000000000000 --- a/.github/workflows/milestone.yml +++ /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 }}" -- 2.39.5