Skip to content

Commit 34c6075

Browse files
committed
Merge branch '3.2.x'
2 parents bcfa10d + 95a5bb6 commit 34c6075

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/actions/build/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ inputs:
2929
description: 'The password for authentication with the remote build cache'
3030
outputs:
3131
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 }}
3333
version:
3434
value: ${{ steps.read-version.outputs.version }}
3535
runs:
@@ -62,6 +62,7 @@ runs:
6262
echo systemProp.org.gradle.java.installations.auto-download=false >> $HOME/.gradle/gradle.properties
6363
echo systemProp.org.gradle.java.installations.paths=${{ format('$JAVA_HOME_{0}_X64', inputs.java-version) }} >> $HOME/.gradle/gradle.properties
6464
- name: Build
65+
id: build
6566
if: ${{ !inputs.publish }}
6667
shell: bash
6768
env:
@@ -71,6 +72,7 @@ runs:
7172
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ inputs.gradle-enterprise-cache-password }}
7273
run: ./gradlew build
7374
- name: Build and Publish
75+
id: build-and-publish
7476
if: ${{ inputs.publish }}
7577
shell: bash
7678
env:

.github/workflows/build-and-deploy-snapshot.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- name: Check Out Code
1717
uses: actions/checkout@v4
1818
- name: Build and Publish
19+
id: build-and-publish
1920
uses: ./.github/actions/build
2021
with:
2122
gradle-enterprise-secret-access-key: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
@@ -45,10 +46,10 @@ jobs:
4546
with:
4647
webhook-url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }}
4748
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 }}
4950
run-name: ${{ format('{0} | Linux | Java 17', github.ref_name) }}
5051
outputs:
51-
version: ${{ steps.build.outputs.version }}
52+
version: ${{ steps.build-and-publish.outputs.version }}
5253
verify:
5354
name: Verify
5455
needs: build-and-deploy-snapshot

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
- name: Check Out Code
4040
uses: actions/checkout@v4
4141
- name: Build
42+
id: build
4243
uses: ./.github/actions/build
4344
with:
4445
java-version: ${{ matrix.java.version }}

0 commit comments

Comments
 (0)