Files
threshold/.github/workflows/milestone-checker.yml
T
Timothy Messier 236d7ca872 ci: Additional githubaction configuration (#3034)
- Pin action versions
- Dependabot to notify about action updates
- Update codeowners
2023-03-01 08:00:46 -05:00

37 lines
1.1 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/**
permissions:
contents: read
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: ${{ fromJSON(vars.RUNNER) }}
steps:
- name: Checkout Actions
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
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