File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ inputs:
29
29
description : ' The password for authentication with the remote build cache'
30
30
outputs :
31
31
build-scan-url :
32
- value : ${{ steps.build.outputs.build-scan-url }}
32
+ value : ${{ (inputs.publish && steps.build-and-publish.outputs.build-scan-url) || steps.build.outputs.build-scan-url }}
33
33
version :
34
34
value : ${{ steps.read-version.outputs.version }}
35
35
runs :
62
62
echo systemProp.org.gradle.java.installations.auto-download=false >> $HOME/.gradle/gradle.properties
63
63
echo systemProp.org.gradle.java.installations.paths=${{ format('$JAVA_HOME_{0}_X64', inputs.java-version) }} >> $HOME/.gradle/gradle.properties
64
64
- name : Build
65
+ id : build
65
66
if : ${{ !inputs.publish }}
66
67
shell : bash
67
68
env :
71
72
GRADLE_ENTERPRISE_CACHE_PASSWORD : ${{ inputs.gradle-enterprise-cache-password }}
72
73
run : ./gradlew build
73
74
- name : Build and Publish
75
+ id : build-and-publish
74
76
if : ${{ inputs.publish }}
75
77
shell : bash
76
78
env :
Original file line number Diff line number Diff line change 14
14
- name : Check Out Code
15
15
uses : actions/checkout@v4
16
16
- name : Build and Publish
17
+ id : build-and-publish
17
18
uses : ./.github/actions/build
18
19
with :
19
20
gradle-enterprise-secret-access-key : ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
@@ -39,10 +40,10 @@ jobs:
39
40
with :
40
41
webhook-url : ${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }}
41
42
status : ${{ job.status }}
42
- build-scan-url : ${{ steps.build.outputs.build-scan-url }}
43
+ build-scan-url : ${{ steps.build-and-publish .outputs.build-scan-url }}
43
44
run-name : ${{ format('{0} | Linux | Java 17', github.ref_name) }}
44
45
outputs :
45
- version : ${{ steps.build.outputs.version }}
46
+ version : ${{ steps.build-and-publish .outputs.version }}
46
47
verify :
47
48
name : Verify
48
49
needs : build-and-deploy-snapshot
Original file line number Diff line number Diff line change 39
39
- name : Check Out Code
40
40
uses : actions/checkout@v4
41
41
- name : Build
42
+ id : build
42
43
uses : ./.github/actions/build
43
44
with :
44
45
java-version : ${{ matrix.java.version }}
You can’t perform that action at this time.
0 commit comments