forked from spring-projects/spring-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.76 KB
/
release-notes-generation.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: Generate Release notes
on:
workflow_dispatch:
inputs:
milestoneNumber:
description: "Milestone title"
required: true
generatorVersion:
description: "Changelog Generator version"
required: true
jobs:
build:
name: Generate release notes
runs-on: ubuntu-latest
steps:
- name: Capture milestone number and generator version
run: |
echo MILESTONE_NUMBER=${{ github.event.inputs.milestoneNumber }} >> $GITHUB_ENV
echo GENERATOR_VERSION=${{ github.event.inputs.generatorVersion }} >> $GITHUB_ENV
- name: Download changelog generator
run: wget https://github.com/spring-io/github-changelog-generator/releases/download/v$GENERATOR_VERSION/github-changelog-generator.jar
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Prepare configuration file
run: |
cat << EOF > application.yml
changelog:
repository: spring-exprimental/spring-ai
sections:
- title: ":star: New features"
labels: [ "type: feature" ]
- title: ":rocket: Enhancements"
labels: [ "type: enhancement" ]
- title: ":lady_beetle: Bug fixes"
labels: [ "type: bug" ]
- title: ":notebook_with_decorative_cover: Documentation"
labels: [ "in: documentation" ]
- title: ":hammer: Tasks"
labels: [ "type: task" ]
EOF
- name: Generate release notes
run: java -jar github-changelog-generator.jar $MILESTONE_NUMBER release-notes.md
- name: Print release notes
run: cat release-notes.md