forked from pyinstaller/pyinstaller
-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (32 loc) · 984 Bytes
/
validate-new-news.yml
File metadata and controls
38 lines (32 loc) · 984 Bytes
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
38
---
name: Validate new news entries
on:
pull_request: # Trigger on PRs to develop
branches:
- develop
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Get out of detached head state
run: |
git fetch origin ${{ github.base_ref }}
git fetch origin ${{ github.ref }}
git checkout FETCH_HEAD --
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Validate new news items
run: |
git diff --name-status origin/${{ github.base_ref }}
git diff --name-status origin/${{ github.base_ref }}\
| python scripts/verify-news-fragments.py
- name: Install towncrier
run: pip install -q -U setuptools wheel towncrier
- name: Run towncrier
run: towncrier --draft