-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (63 loc) · 2.02 KB
/
generate-changelog.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
61
62
63
name: Generate Changelog
on:
workflow_dispatch:
inputs:
target:
description: Target Owner/Repo
required: true
branch:
description: The branch or reference name to filter pull requests by
required: true
convert_to_rst:
description: Whether to convert to RST
required: false
since:
description: Use PRs with activity since this date or git reference
required: false
until:
description: Use PRs with activity until this date or git reference
required: false
jobs:
build:
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu]
python-version: ["3.9"]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: "x64"
- name: Upgrade packaging dependencies
run: |
pip install --upgrade pip setuptools wheel --user
- name: Install the Python dependencies
run: |
sudo apt-get install pandoc
pip install pypandoc
pip install -e .
- name: List installed packages
run: |
pip freeze
pip check
- name: Generate the Changelog
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
export RH_BRANCH=${{ github.event.inputs.branch }}
export RH_SINCE=${{ github.event.inputs.since }}
export RH_REF=refs/heads/${RH_BRANCH}
export RH_REPOSITORY=${{ github.event.inputs.target }}
export RH_UNTIL=${{ github.event.inputs.until }}
export RH_CONVERT_TO_RST=${{ github.event.inputs.convert_to_rst }}
python -m jupyter_releaser.actions.generate-changelog
cat CHANGELOG_ENTRY.md
- uses: actions/upload-artifact@v2
with:
name: changelog
path: CHANGELOG_ENTRY.md