Skip to content

Commit ebc12a4

Browse files
committed
Apply new Shipkit Changelog plugin properties
Recently there were added 2 new properties to Shipkit Changelog plugin: 1. 'newTagRevision' that ensures predictable tagging. 'GITHUB_SHA' that supplies the property, is an GH Action's env variable that exposes SHA of the commit that triggered the workflow. 2. Token that is set by 'githubToken' property is used both to fetch and post via GH API. Earlier used 'readOnlyToken' and 'writeToken' properties are now deprecated.
1 parent f5f0707 commit ebc12a4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gradle/shipkit.gradle

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apply plugin: "org.shipkit.shipkit-gh-release"
55

66
tasks.named("generateChangelog") {
77
previousRevision = project.ext.'shipkit-auto-version.previous-tag'
8-
readOnlyToken = System.getenv("GITHUB_TOKEN")
8+
githubToken = System.getenv("GITHUB_TOKEN")
99
repository = "mockito/mockito-testng"
1010
}
1111

@@ -14,5 +14,6 @@ tasks.named("githubRelease") {
1414
dependsOn genTask
1515
repository = genTask.repository
1616
changelog = genTask.outputFile
17-
writeToken = System.getenv("GITHUB_TOKEN")
17+
githubToken = System.getenv("GITHUB_TOKEN")
18+
newTagRevision = System.getenv("GITHUB_SHA")
1819
}

0 commit comments

Comments
 (0)