Skip to content

Commit

Permalink
Merge branch '3.2.x' into 3.3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mhalbritter committed Oct 24, 2024
2 parents 2bf3e5a + 9858b4b commit 9ca6667
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/actions/create-github-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ inputs:
token:
description: 'Token to use for authentication with GitHub'
required: true
commercial:
description: 'Whether to generate the changelog for the commercial release'
required: true
runs:
using: composite
steps:
- name: Generate Changelog
uses: spring-io/github-changelog-generator@185319ad7eaa75b0e8e72e4b6db19c8b2cb8c4c1 #v0.0.11
with:
config-file: .github/actions/create-github-release/changelog-generator.yml
config-file: ${{ inputs.commercial && '.github/actions/create-github-release/changelog-generator-commercial.yml' || '.github/actions/create-github-release/changelog-generator-oss.yml' }}
milestone: ${{ inputs.milestone }}
token: ${{ inputs.token }}
- name: Create GitHub Release
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ changelog:
labels:
- "type: dependency-upgrade"
issues:
generate_links: ${{ !vars.COMMERCIAL }}
generate_links: false
ports:
- label: "status: forward-port"
bodyExpression: 'Forward port of issue #(\d+).*'
Expand Down
23 changes: 23 additions & 0 deletions .github/actions/create-github-release/changelog-generator-oss.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
changelog:
sections:
- title: ":star: New Features"
labels:
- "type: enhancement"
- title: ":lady_beetle: Bug Fixes"
labels:
- "type: bug"
- "type: regression"
- title: ":notebook_with_decorative_cover: Documentation"
labels:
- "type: documentation"
- title: ":hammer: Dependency Upgrades"
sort: "title"
labels:
- "type: dependency-upgrade"
issues:
generate_links: true
ports:
- label: "status: forward-port"
bodyExpression: 'Forward port of issue #(\d+).*'
- label: "status: back-port"
bodyExpression: 'Back port of issue #(\d+).*'
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
version: ${{ needs.build-and-stage-release.outputs.version }}
sync-to-maven-central:
name: Sync to Maven Central
if: ${{ !COMMERCIAL }}
if: ${{ !vars.COMMERCIAL }}
needs:
- build-and-stage-release
- verify
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
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
publish-gradle-plugin:
name: Publish Gradle Plugin
if: ${{ !COMMERCIAL }}
if: ${{ !vars.COMMERCIAL }}
needs:
- build-and-stage-release
- sync-to-maven-central
Expand All @@ -106,7 +106,7 @@ jobs:
plugin-version: ${{ needs.build-and-stage-release.outputs.version }}
publish-to-sdkman:
name: Publish to SDKMAN!
if: ${{ !COMMERCIAL }}
if: ${{ !vars.COMMERCIAL }}
needs:
- build-and-stage-release
- sync-to-maven-central
Expand Down Expand Up @@ -166,3 +166,4 @@ jobs:
with:
milestone: ${{ needs.build-and-stage-release.outputs.version }}
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
commercial: ${{ vars.COMMERCIAL }}

0 comments on commit 9ca6667

Please sign in to comment.