forked from theislab/cellrank
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (52 loc) · 1.92 KB
/
news.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: News
on:
pull_request_target:
branches: [master]
types: [closed]
jobs:
news:
if: ${{ github.event.pull_request.merged }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.TOWNCRIER_TOKEN }}
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
sudo apt install pandoc
python -m pip install --upgrade pip
pip install tox
- name: Generate news fragment
env:
PR_NUMBER: ${{ github.event.number }}
run: |
tox -e news -- "$PR_NUMBER" -v
- name: Check generated docs
# TODO(michalk8): figure out why this crashed here
# tox -e check-docs
run: |
echo "Skip"
- name: Commit news fragment
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: ${{ format('[auto][ci skip] Generate news fragment (#{0})', github.event.number) }}
branch: ${{ github.base_ref }}
file_pattern: docs/source/release/changelog/*.rst
commit_user_name: CI
skip_dirty_check: false
- name: Update dev release notes
run: |
tox -e update-dev-notes
- name: Commit dev release notes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: ${{ format('[auto][ci skip] Update release notes (#{0})', github.event.number) }}
branch: ${{ github.base_ref }}
file_pattern: docs/source/release/notes-dev.rst
commit_user_name: CI
skip_dirty_check: false