From cad9f098979c767a7c332bb7ce73385f782f51a1 Mon Sep 17 00:00:00 2001 From: Michal Date: Sun, 27 Dec 2020 19:28:46 +0100 Subject: [PATCH] Apply 'githubToken' property Start using new Shipkit Changelog's 'githubToken' property to authenticate in GitHub Api, both to fetch and write, instead of deprecated 'readOnlyToken' and 'writeToken' properties. --- gradle/release.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle/release.gradle b/gradle/release.gradle index 316f421..2215920 100644 --- a/gradle/release.gradle +++ b/gradle/release.gradle @@ -39,7 +39,7 @@ if (ext.'gradle.publish.key' && ext.'gradle.publish.secret') { tasks.named("generateChangelog") { previousRevision = project.ext.'shipkit-auto-version.previous-tag' - readOnlyToken = System.getenv("GITHUB_TOKEN") + githubToken = System.getenv("GITHUB_TOKEN") repository = "shipkit/shipkit-changelog" } @@ -48,5 +48,5 @@ tasks.named("githubRelease") { repository = "shipkit/shipkit-changelog" changelog = tasks.named("generateChangelog").get().outputFile newTagRevision = System.getenv("GITHUB_SHA") - writeToken = System.getenv("GITHUB_TOKEN") + githubToken = System.getenv("GITHUB_TOKEN") }