forked from hashicorp/vault
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 1015 Bytes
/
milestone-checker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This workflow checks that there is either a 'pr/no-milestone' label applied to a PR
# or there is a milestone associated with a PR
name: Check Milestone
on:
pull_request:
types: [opened, synchronize, labeled, unlabeled]
# Runs on PRs to main and release branches
branches:
- main
- release/**
jobs:
# checks that a milestone entry is present for a PR
milestone-check:
# If there a `pr/no-milestone` label we ignore this check
if: "!contains(github.event.pull_request.labels.*.name, 'pr/no-milestone')"
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
uses: actions/checkout@v2
with:
repository: "grafana/grafana-github-actions"
path: ./actions
ref: main
- name: Install Actions
run: npm install --production --prefix ./actions
- name: Run PR Checks
uses: ./actions/pr-checks
with:
token: ${{secrets.GITHUB_TOKEN}}
configPath: configs/milestone-check