File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 5959 - name : Run Gradle updateChangelog
6060 id : updateChangelog
6161 run : |
62- ./gradlew updateChangelog -PreleaseDate=$(date +'%Y-%m-%d')
62+ ./gradlew updateChangelog -PreleaseDate=$(date +'%Y-%m-%d') --no-configuration-cache
6363 env :
6464 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6565
Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ tasks.register("updateChangelog") {
278278 .trim()
279279 }
280280
281- val tagsOutput = runCommand(" git tag --sort=-v: creatordate" )
281+ val tagsOutput = runCommand(" git tag --sort=-creatordate" )
282282 val semverRegex = Regex (" ^\\ d+\\ .\\ d+\\ .\\ d+$" )
283283 val tags = tagsOutput.lines().filter { semverRegex.matches(it) }
284284 if (tags.isEmpty()) {
@@ -419,13 +419,14 @@ tasks.register("updateChangelog") {
419419
420420 // Update Version Gradle pluginVersion
421421 replaceVersionGradleProperty(newVersion)
422+ println (" Update Gradle Property: $newVersion " )
422423
423424 val githubEnv = System .getenv(" GITHUB_ENV" )
424425 val envFile = File (githubEnv)
425426 envFile.appendText(" NEW_VERSION=$newVersion \n " )
426427 envFile.appendText(" BRANCH=doc/changelog-update-$newVersion \n " )
427428
428- println (" Update CHANGELOG.md : newVersion $newVersion " )
429+ println (" Update newVersion: $newVersion " )
429430 }
430431}
431432
You can’t perform that action at this time.
0 commit comments