From b80ac3cbce50ab175236f75ce299122cfedcd296 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 27 Feb 2024 09:26:39 +0000 Subject: [PATCH] Add Gradle user name to properties and configure in separate step --- .github/workflows/windows-build.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index 5862b6ca2871..0a66d7ceea07 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -1,8 +1,5 @@ name: Windows Build -on: - push: - branches: - - 3.1.x +on: push concurrency: group: ${{ github.workflow }}-${{ github.ref }} jobs: @@ -26,6 +23,12 @@ jobs: uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 with: cache-read-only: false + - name: Configure Gradle properties + shell: bash + run: | + echo 'systemProp.user.name=spring-builds+github' >> $GRADLE_USER_HOME/gradle.properties + echo 'systemProp.org.gradle.internal.launcher.welcomeMessageEnabled=false' >> $GRADLE_USER_HOME/gradle.properties + echo 'org.gradle.daemon=true' >> $GRADLE_USER_HOME/gradle.properties - name: Stop Docker service run: Stop-Service -name Docker - name: Build @@ -35,4 +38,4 @@ jobs: GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }} GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }} GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }} - run: ./gradlew '-Dorg.gradle.internal.launcher.welcomeMessageEnabled=false' --no-daemon build + run: ./gradlew build