From: Kefu Chai Date: Sun, 7 Mar 2021 11:21:25 +0000 (+0800) Subject: .github/workflows: move milestone.yml into labeler.yml X-Git-Tag: v15.2.10~17^2~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ae6eb67183137aa72879c54e128968a9c14e7ac3;p=ceph.git .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) --- 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 }}"