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 16
16
- name : Check Out Code
17
17
uses : actions/checkout@v4
18
18
- name : Build and Publish
19
+ id : build-and-publish
19
20
uses : ./.github/actions/build
20
21
with :
21
22
gradle-enterprise-secret-access-key : ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
@@ -45,10 +46,10 @@ jobs:
45
46
with :
46
47
webhook-url : ${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }}
47
48
status : ${{ job.status }}
48
- build-scan-url : ${{ steps.build.outputs.build-scan-url }}
49
+ build-scan-url : ${{ steps.build-and-publish .outputs.build-scan-url }}
49
50
run-name : ${{ format('{0} | Linux | Java 17', github.ref_name) }}
50
51
outputs :
51
- version : ${{ steps.build.outputs.version }}
52
+ version : ${{ steps.build-and-publish .outputs.version }}
52
53
verify :
53
54
name : Verify
54
55
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