File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ inputs:
19
19
outputs :
20
20
build-scan-url :
21
21
description : ' The URL, if any, of the build scan produced by the build'
22
- value : ${{ (inputs.publish == 'true' && steps.build-and- publish.outputs.build-scan-url) || steps.build.outputs.build-scan-url }}
22
+ value : ${{ (inputs.publish == 'true' && steps.publish.outputs.build-scan-url) || steps.build.outputs.build-scan-url }}
23
23
version :
24
24
description : ' The version that was built'
25
25
value : ${{ steps.read-version.outputs.version }}
@@ -38,13 +38,13 @@ runs:
38
38
env :
39
39
DEVELOCITY_ACCESS_KEY : ${{ inputs.develocity-access-key }}
40
40
run : ./gradlew build
41
- - name : Build and Publish
42
- id : build-and- publish
41
+ - name : Publish
42
+ id : publish
43
43
if : ${{ inputs.publish == 'true' }}
44
44
shell : bash
45
45
env :
46
46
DEVELOCITY_ACCESS_KEY : ${{ inputs.develocity-access-key }}
47
- run : ./gradlew -PdeploymentRepository=$(pwd)/deployment-repository build publishAllPublicationsToDeploymentRepository
47
+ run : ./gradlew -PdeploymentRepository=$(pwd)/deployment-repository ${{ !startsWith(github.event.head_commit.message, 'Next development version') && ' build' || '' }} publishAllPublicationsToDeploymentRepository
48
48
- name : Read Version From gradle.properties
49
49
id : read-version
50
50
shell : bash
You can’t perform that action at this time.
0 commit comments