From 6f7ae8b1784a38acefc34ce0e7c7759b7f9bf2e7 Mon Sep 17 00:00:00 2001 From: "Luis (LT) Carbonell" Date: Tue, 25 Apr 2023 08:49:43 -0500 Subject: [PATCH] Re-run Milestone Check when Milestones are Applied (#20299) * re-run when milestones are applied * update milestone check conditions --- .github/workflows/milestone-checker.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/milestone-checker.yml b/.github/workflows/milestone-checker.yml index a446d4ee0d..d3d9b48ab1 100644 --- a/.github/workflows/milestone-checker.yml +++ b/.github/workflows/milestone-checker.yml @@ -10,12 +10,14 @@ on: branches: - main - release/** + issues: + types: [milestoned, demilestoned] jobs: # checks that a milestone entry is present for a PR milestone-check: # If there is a `pr/no-milestone` label we ignore this check - if: "!contains(github.event.pull_request.labels.*.name, 'pr/no-milestone')" + if: "! ( contains(github.event.pull_request.labels.*.name, 'pr/no-milestone') || ( github.event.name == 'labeled' && github.event.label == 'pr/no-milestone' ) )" runs-on: ubuntu-latest steps: - name: Checkout Actions @@ -30,4 +32,4 @@ jobs: uses: ./actions/pr-checks with: token: ${{secrets.GITHUB_TOKEN}} - configPath: configs/milestone-check \ No newline at end of file + configPath: configs/milestone-check