File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ scmVersion {
18
18
}
19
19
if (System .getenv(" GITHUB_ACTIONS" ) == " true" ) {
20
20
with (repository) {
21
- customPassword = System .getenv(" GITHUB_TOKEN" );
21
+ val githubToken = System .getenv(" GITHUB_TOKEN" )
22
+ remote = " https://$githubToken @github.com/gavlyukovskiy/spring-boot-data-source-decorator.git"
22
23
}
23
24
}
24
25
}
@@ -182,7 +183,11 @@ tasks {
182
183
if (! project.hasProperty(" release.version" )) {
183
184
errors.add(" '-Prelease.version' must be set" )
184
185
}
185
- if (System .getenv(" GITHUB_ACTIONS" ) != " true" ) {
186
+ if (System .getenv(" GITHUB_ACTIONS" ) == " true" ) {
187
+ if (System .getenv(" GITHUB_TOKEN" ) == null ) {
188
+ errors.add(" 'GITHUB_TOKEN' must be passed intp Github Actions workflow" )
189
+ }
190
+ } else {
186
191
if (! project.hasProperty(" release.customUsername" )) {
187
192
errors.add(" '-Prelease.customUsername' must be set" )
188
193
}
You can’t perform that action at this time.
0 commit comments