mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Re-run Milestone Check when Milestones are Applied (#20299)
* re-run when milestones are applied * update milestone check conditions
This commit is contained in:
committed by
GitHub
parent
28dd171cd2
commit
6f7ae8b178
6
.github/workflows/milestone-checker.yml
vendored
6
.github/workflows/milestone-checker.yml
vendored
@@ -10,12 +10,14 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- release/**
|
- release/**
|
||||||
|
issues:
|
||||||
|
types: [milestoned, demilestoned]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# checks that a milestone entry is present for a PR
|
# checks that a milestone entry is present for a PR
|
||||||
milestone-check:
|
milestone-check:
|
||||||
# If there is a `pr/no-milestone` label we ignore this 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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Actions
|
- name: Checkout Actions
|
||||||
@@ -30,4 +32,4 @@ jobs:
|
|||||||
uses: ./actions/pr-checks
|
uses: ./actions/pr-checks
|
||||||
with:
|
with:
|
||||||
token: ${{secrets.GITHUB_TOKEN}}
|
token: ${{secrets.GITHUB_TOKEN}}
|
||||||
configPath: configs/milestone-check
|
configPath: configs/milestone-check
|
||||||
|
|||||||
Reference in New Issue
Block a user