From 00c978c8641bfee44489b1a8a44b7de2a6827172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20H=C3=A4ggblad?= Date: Tue, 11 Jun 2024 12:58:25 +0200 Subject: [PATCH] Add ci check for PR having an assigned milestone (#4644) * Add ci check for PR having an assigned milestone * fix trigger --- .github/workflows/pr-validation.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/pr-validation.yml diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml new file mode 100644 index 0000000000..1dba8fca5c --- /dev/null +++ b/.github/workflows/pr-validation.yml @@ -0,0 +1,27 @@ +name: pr-validation + +on: + pull_request: + branches: + - develop + - 'release/**' + types: + - labeled + - unlabeled + - opened + - reopened + - synchronize + - edited + - milestoned + - demilestoned + +env: + LABELS: ${{ join( github.event.pull_request.labels.*.name, ' ' ) }} + +jobs: + check-milestone: + name: Check Milestone + runs-on: ubuntu-latest + steps: + - if: github.event.pull_request.milestone == null && contains( env.LABELS, 'no-milestone' ) == false + run: exit 1