-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (33 loc) · 1.12 KB
/
releasenote.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
34
35
36
37
name: Release notes
on:
push:
branches:
- master
pull_request:
# Important that we run on `labeled` and `unlabeled` to pick up `no-releasenote` being added/removed
# DEV: [opened, reopened, synchronize] is the default
types: [opened, reopened, synchronize, labeled, unlabeled, ready_for_review]
jobs:
validate:
name: Validate release notes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Include all history and tags
with:
fetch-depth: 0
# Ensure a new reno release note was added in this PR.
# Use `reno new <slug>` to add a new note to `no-releasenote`,
# or add `no-releasenote` label if no release note is needed.
- name: Ensure release note added
# Only run this on pull requests
if: github.event_name == 'pull_request'
run: releasenotes/check-releasenotes
- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.12'
- name: Install Dependencies
run: pip install reno docutils
- name: Lint release notes
run: reno lint