forked from modelica/ModelicaStandardLibrary
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (41 loc) · 1.46 KB
/
generateReleaseNotes.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
name: GenerateReleaseNotes
on:
workflow_dispatch:
inputs:
milestone:
description: 'Milestone number of the release'
default: '61'
required: true
version:
description: 'Version of the release'
default: '4.1.0'
required: true
watermark:
description: 'PDF contains watermark for test'
default: true
required: true
type: boolean
jobs:
generate_release_notes:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 5
- name: Setup python environment
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install python packages
run: pip install --disable-pip-version-check --user docraptor==3.1.0 Jinja2==3.1.3 Markdown==3.5.2 requests PyYAML==6.0.1
- name: Generate MSL release notes from closed GitHub issues
timeout-minutes: 3
env:
DOCRAPTOR_API_KEY: ${{ secrets.DOCRAPTOR_API_KEY }}
DOCRAPTOR_TEST: ${{ github.event.inputs.watermark }}
run: python ./Modelica/Resources/Documentation/Generate-ReleaseNotes.py ${{ github.event.inputs.milestone }} ${{ github.event.inputs.version }}
- uses: actions/upload-artifact@v4
with:
name: ResolvedGitHubIssues-Version-${{ github.event.inputs.version }}
path: ./Modelica/Resources/Documentation/Version-${{ github.event.inputs.version }}/