-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (54 loc) · 1.74 KB
/
draft-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
name: Draft Changelog
on:
workflow_dispatch:
inputs:
target:
description: "The owner/repo GitHub target"
required: true
branch:
description: The branch to target"
required: true
version_spec:
description: "New Version Spec"
required: true
since:
description: Use PRs with activity since this date or git reference
required: false
since_last_stable:
description: Use PRs with activity since the last stable git tag
required: false
jobs:
changelog:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.9"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: "x64"
- name: Install node
uses: actions/setup-node@v2
with:
node-version: "14.x"
- name: Upgrade packaging dependencies
run: |
pip install --upgrade pip setuptools wheel --user
- name: Draft Changelog
id: draft-changelog
uses: jupyter-server/jupyter_releaser/.github/actions/draft-changelog@v1
with:
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
version_spec: ${{ github.event.inputs.version_spec }}
target: ${{ github.event.inputs.target }}
branch: ${{ github.event.inputs.branch }}
since: ${{ github.event.inputs.since }}
since_last_stable: ${{ github.event.inputs.since_last_stable }}
- name: "** Next Step **"
run: |
echo "Review PR: ${{ steps.draft-changelog.outputs.pr_url }}"