forked from jupyter-server/jupyter_releaser
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.44 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
name: Draft Changelog
on:
workflow_dispatch:
inputs:
target:
description: "The owner/repo GitHub target"
required: true
branch:
description: "The branch to target (defaults to default branch)"
required: false
version_spec:
description: "New Version Spec"
default: "next"
required: false
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"
type: boolean
required: false
jobs:
draft_changelog:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.10"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup
uses: ./.github/actions/common
- name: Draft Changelog
id: draft-changelog
uses: ./.github/actions/draft-changelog
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 }}"