From ce938fd2feff0b13305ad8d66c2a82a3e6052f32 Mon Sep 17 00:00:00 2001 From: Eleftheria Stein Date: Fri, 14 May 2021 12:11:17 +0200 Subject: [PATCH] Configure user name for Gradle CI builds Closes gh-1851 --- .../workflows/continuous-integration-workflow.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml index 8c381cc2..5ec548d9 100644 --- a/.github/workflows/continuous-integration-workflow.yml +++ b/.github/workflows/continuous-integration-workflow.yml @@ -29,13 +29,16 @@ jobs: uses: actions/setup-java@v1 with: java-version: ${{ matrix.jdk }} + - name: Setup gradle user name + run: | + mkdir -p ~/.gradle + echo 'systemProp.user.name=spring-builds' >> ~/.gradle/gradle.properties - name: Cache Gradle packages uses: actions/cache@v2 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} - name: Build with Gradle - run: | export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER" export GRADLE_ENTERPRISE_CACHE_PASSWORD="$GRADLE_ENTERPRISE_CACHE_PASSWORD" @@ -51,6 +54,10 @@ jobs: uses: actions/setup-java@v1 with: java-version: '8' + - name: Setup gradle user name + run: | + mkdir -p ~/.gradle + echo 'systemProp.user.name=spring-builds' >> ~/.gradle/gradle.properties - name: Deploy artifacts run: | export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER" @@ -78,6 +85,10 @@ jobs: uses: actions/setup-java@v1 with: java-version: '8' + - name: Setup gradle user name + run: | + mkdir -p ~/.gradle + echo 'systemProp.user.name=spring-builds' >> ~/.gradle/gradle.properties - name: Deploy Docs run: | export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"