Skip to content

Commit 9ca6667

Browse files
committed
Merge branch '3.2.x' into 3.3.x
2 parents 2bf3e5a + 9858b4b commit 9ca6667

File tree

4 files changed

+32
-5
lines changed

4 files changed

+32
-5
lines changed

.github/actions/create-github-release/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ inputs:
77
token:
88
description: 'Token to use for authentication with GitHub'
99
required: true
10+
commercial:
11+
description: 'Whether to generate the changelog for the commercial release'
12+
required: true
1013
runs:
1114
using: composite
1215
steps:
1316
- name: Generate Changelog
1417
uses: spring-io/github-changelog-generator@185319ad7eaa75b0e8e72e4b6db19c8b2cb8c4c1 #v0.0.11
1518
with:
16-
config-file: .github/actions/create-github-release/changelog-generator.yml
19+
config-file: ${{ inputs.commercial && '.github/actions/create-github-release/changelog-generator-commercial.yml' || '.github/actions/create-github-release/changelog-generator-oss.yml' }}
1720
milestone: ${{ inputs.milestone }}
1821
token: ${{ inputs.token }}
1922
- name: Create GitHub Release

.github/actions/create-github-release/changelog-generator.yml renamed to .github/actions/create-github-release/changelog-generator-commercial.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ changelog:
1515
labels:
1616
- "type: dependency-upgrade"
1717
issues:
18-
generate_links: ${{ !vars.COMMERCIAL }}
18+
generate_links: false
1919
ports:
2020
- label: "status: forward-port"
2121
bodyExpression: 'Forward port of issue #(\d+).*'
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
changelog:
2+
sections:
3+
- title: ":star: New Features"
4+
labels:
5+
- "type: enhancement"
6+
- title: ":lady_beetle: Bug Fixes"
7+
labels:
8+
- "type: bug"
9+
- "type: regression"
10+
- title: ":notebook_with_decorative_cover: Documentation"
11+
labels:
12+
- "type: documentation"
13+
- title: ":hammer: Dependency Upgrades"
14+
sort: "title"
15+
labels:
16+
- "type: dependency-upgrade"
17+
issues:
18+
generate_links: true
19+
ports:
20+
- label: "status: forward-port"
21+
bodyExpression: 'Forward port of issue #(\d+).*'
22+
- label: "status: back-port"
23+
bodyExpression: 'Back port of issue #(\d+).*'

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
version: ${{ needs.build-and-stage-release.outputs.version }}
5555
sync-to-maven-central:
5656
name: Sync to Maven Central
57-
if: ${{ !COMMERCIAL }}
57+
if: ${{ !vars.COMMERCIAL }}
5858
needs:
5959
- build-and-stage-release
6060
- verify
@@ -89,7 +89,7 @@ jobs:
8989
run: jfrog rt build-promote ${{ format('spring-boot-commercial-{0}', needs.build-and-stage-release.outputs.version)}} ${{ github.run_number }} spring-enterprise-maven-prod-local --project spring
9090
publish-gradle-plugin:
9191
name: Publish Gradle Plugin
92-
if: ${{ !COMMERCIAL }}
92+
if: ${{ !vars.COMMERCIAL }}
9393
needs:
9494
- build-and-stage-release
9595
- sync-to-maven-central
@@ -106,7 +106,7 @@ jobs:
106106
plugin-version: ${{ needs.build-and-stage-release.outputs.version }}
107107
publish-to-sdkman:
108108
name: Publish to SDKMAN!
109-
if: ${{ !COMMERCIAL }}
109+
if: ${{ !vars.COMMERCIAL }}
110110
needs:
111111
- build-and-stage-release
112112
- sync-to-maven-central
@@ -166,3 +166,4 @@ jobs:
166166
with:
167167
milestone: ${{ needs.build-and-stage-release.outputs.version }}
168168
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
169+
commercial: ${{ vars.COMMERCIAL }}

0 commit comments

Comments
 (0)