[CI] Update boot version property at release time
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -40,7 +40,7 @@ jobs:
|
||||
version=$(cat gradle.properties | grep "version=" | awk -F'=' '{print $2}')
|
||||
echo "project_version=$version" >>$GITHUB_OUTPUT
|
||||
build_jdk_17:
|
||||
name: Build and Deploy Artifacts (JDK 17)
|
||||
name: Build (JDK 17)
|
||||
needs: [prerequisites]
|
||||
runs-on: ubuntu-latest
|
||||
if: needs.prerequisites.outputs.runjobs
|
||||
|
||||
13
.github/workflows/prepare-release.yml
vendored
13
.github/workflows/prepare-release.yml
vendored
@@ -7,7 +7,10 @@ on:
|
||||
description: 'Version to release'
|
||||
required: true
|
||||
type: string
|
||||
|
||||
springBootVersion:
|
||||
description: 'Spring Boot Version (Delivery Vehicle)'
|
||||
required: true
|
||||
type: string
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
@@ -27,10 +30,7 @@ jobs:
|
||||
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
||||
|
||||
- name: Set up Gradle
|
||||
uses: spring-io/spring-gradle-build-action@v1
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
uses: spring-io/spring-gradle-build-action@v2
|
||||
|
||||
- id: check-open-issues
|
||||
name: Check for open issues
|
||||
@@ -54,9 +54,10 @@ jobs:
|
||||
git config user.name 'github-actions[bot]'
|
||||
git config user.email 'github-actions[bot]@users.noreply.github.com'
|
||||
releaseVersion="${{ inputs.releaseVersion }}"
|
||||
springBootVersion="${{ inputs.springBootVersion }}"
|
||||
releaseBranch="release-initiate/$releaseVersion"
|
||||
git checkout -b $releaseBranch
|
||||
./gradlew :updateToReleaseVersion -PreleaseVersion=$releaseVersion
|
||||
./gradlew :updateToReleaseVersion -PreleaseVersion=$releaseVersion -PspringBootVersion=$springBootVersion
|
||||
git commit -am "[Release $releaseVersion] Update version"
|
||||
git push origin $releaseBranch
|
||||
gh pr create --title "[Release $releaseVersion] Update version" --body "Merge to initiate release."
|
||||
|
||||
Reference in New Issue
Block a user