Files
threshold/.github/workflows/milestone-checker.yml
T
Irena Rindos 400f13a7e8 Revert "fix milestone check" (#2758)
This reverts commit a283e8be5e8edfa843a7dfc838d4294644841d78.
2023-01-05 10:39:06 -05:00

34 lines
1.0 KiB
YAML

# 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 is 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@v3
with:
repository: "grafana/grafana-github-actions"
path: ./actions
ref: be89ad434792280ebaa4d982ac72ba548b6f7095
- 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