File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ jobs:
122122 sed -i "s/version = .*/version = \"${{ github.event.inputs.version }}\"/" build.gradle.kts
123123
124124 - name : Publish to Maven Central
125- if : github.event_name == 'release' || github.event.inputs.dry_run != 'true'
125+ if : github.event_name == 'release' || ( github.event_name == 'workflow_dispatch' && github. event.inputs.dry_run == 'false')
126126 run : |
127127 cd bindings/kotlin
128128 ./gradlew publish --no-daemon --no-parallel
@@ -133,7 +133,7 @@ jobs:
133133 ORG_GRADLE_PROJECT_BASE64_ENCODED_ASCII_ARMORED_SIGNING_KEY : ${{ secrets.ORG_GRADLE_PROJECT_BASE64_ENCODED_ASCII_ARMORED_SIGNING_KEY }}
134134
135135 - name : Dry run - Local publish only
136- if : github.event_name == 'workflow_dispatch ' && github.event.inputs.dry_run == 'true'
136+ if : github.event_name != 'release ' && ( github.event_name != 'workflow_dispatch' || github. event.inputs.dry_run == 'true')
137137 run : |
138138 cd bindings/kotlin
139139 echo "Dry run: Publishing to local Maven repository only"
You can’t perform that action at this time.
0 commit comments