Skip to content

Commit edbd25a

Browse files
authored
Remove null check (#7)
* Remove null check * Change syntax
1 parent aca3331 commit edbd25a

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ name: Build
22

33
on:
44
push:
5-
branches:
6-
- main
7-
pull_request:
8-
- main
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
98
workflow_dispatch:
109

1110
jobs:

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: Release Drafter
22

33
on:
44
push:
5-
branches:
6-
- main
5+
branches: [ master ]
76
workflow_dispatch:
87

98
jobs:

build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ rootProject.apply {
139139
newVersionCommitMessage = "[Gradle Release Plugin] - [skip ci] new version commit: "
140140

141141
val releaseVersion = project.properties["release.releaseVersion"]?.toString()
142-
checkNotNull(releaseVersion)
143-
144-
git {
145-
requireBranch = "release/$releaseVersion"
142+
if (releaseVersion != null) {
143+
git {
144+
requireBranch = "release/$releaseVersion"
145+
}
146146
}
147147
}
148148

0 commit comments

Comments
 (0)