File tree Expand file tree Collapse file tree 4 files changed +32
-5
lines changed
actions/create-github-release Expand file tree Collapse file tree 4 files changed +32
-5
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,16 @@ inputs:
1111 token :
1212 description : ' Token to use for authentication with GitHub'
1313 required : true
14+ commercial :
15+ description : ' Whether to generate the changelog for the commercial release'
16+ required : true
1417runs :
1518 using : composite
1619 steps :
1720 - name : Generate Changelog
1821 uses : spring-io/github-changelog-generator@185319ad7eaa75b0e8e72e4b6db19c8b2cb8c4c1 # v0.0.11
1922 with :
20- config-file : . github/actions/create-github-release/changelog-generator.yml
23+ config-file : ${{ inputs.commercial && '. github/actions/create-github-release/changelog-generator-commercial .yml' || '.github/actions/create-github-release/changelog-generator-oss.yml' }}
2124 milestone : ${{ inputs.milestone }}
2225 token : ${{ inputs.token }}
2326 - name : Create GitHub Release
Original file line number Diff line number Diff 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+).*'
Original file line number Diff line number Diff line change 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+).*'
Original file line number Diff line number Diff line change 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
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 }}
You can’t perform that action at this time.
0 commit comments