Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/update_changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
- name: Run Gradle updateChangelog
id: updateChangelog
run: |
./gradlew updateChangelog -PreleaseDate=$(date +'%Y-%m-%d')
./gradlew updateChangelog -PreleaseDate=$(date +'%Y-%m-%d') --no-configuration-cache
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
5 changes: 3 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ tasks.register("updateChangelog") {
.trim()
}

val tagsOutput = runCommand("git tag --sort=-v:creatordate")
val tagsOutput = runCommand("git tag --sort=-creatordate")
val semverRegex = Regex("^\\d+\\.\\d+\\.\\d+$")
val tags = tagsOutput.lines().filter { semverRegex.matches(it) }
if (tags.isEmpty()) {
Expand Down Expand Up @@ -419,13 +419,14 @@ tasks.register("updateChangelog") {

// Update Version Gradle pluginVersion
replaceVersionGradleProperty(newVersion)
println("Update Gradle Property: $newVersion")

val githubEnv = System.getenv("GITHUB_ENV")
val envFile = File(githubEnv)
envFile.appendText("NEW_VERSION=$newVersion\n")
envFile.appendText("BRANCH=doc/changelog-update-$newVersion\n")

println("Update CHANGELOG.md :newVersion $newVersion")
println("Update newVersion: $newVersion")
}
}

Expand Down
Loading