Skip to content

Commit 95a5bb6

Browse files
committed
Merge branch '3.1.x' into 3.2.x
2 parents b49a5ad + a4231ab commit 95a5bb6

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
@@ -14,6 +14,7 @@ jobs:
1414
- name: Check Out Code
1515
uses: actions/checkout@v4
1616
- name: Build and Publish
17+
id: build-and-publish
1718
uses: ./.github/actions/build
1819
with:
1920
gradle-enterprise-secret-access-key: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
@@ -39,10 +40,10 @@ jobs:
3940
with:
4041
webhook-url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }}
4142
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 }}
4344
run-name: ${{ format('{0} | Linux | Java 17', github.ref_name) }}
4445
outputs:
45-
version: ${{ steps.build.outputs.version }}
46+
version: ${{ steps.build-and-publish.outputs.version }}
4647
verify:
4748
name: Verify
4849
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)