Skip to content

Commit ce938fd

Browse files
committed
Configure user name for Gradle CI builds
Closes gh-1851
1 parent 98d7448 commit ce938fd

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/continuous-integration-workflow.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,16 @@ jobs:
2929
uses: actions/setup-java@v1
3030
with:
3131
java-version: ${{ matrix.jdk }}
32+
- name: Setup gradle user name
33+
run: |
34+
mkdir -p ~/.gradle
35+
echo 'systemProp.user.name=spring-builds' >> ~/.gradle/gradle.properties
3236
- name: Cache Gradle packages
3337
uses: actions/cache@v2
3438
with:
3539
path: ~/.gradle/caches
3640
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
3741
- name: Build with Gradle
38-
3942
run: |
4043
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
4144
export GRADLE_ENTERPRISE_CACHE_PASSWORD="$GRADLE_ENTERPRISE_CACHE_PASSWORD"
@@ -51,6 +54,10 @@ jobs:
5154
uses: actions/setup-java@v1
5255
with:
5356
java-version: '8'
57+
- name: Setup gradle user name
58+
run: |
59+
mkdir -p ~/.gradle
60+
echo 'systemProp.user.name=spring-builds' >> ~/.gradle/gradle.properties
5461
- name: Deploy artifacts
5562
run: |
5663
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
@@ -78,6 +85,10 @@ jobs:
7885
uses: actions/setup-java@v1
7986
with:
8087
java-version: '8'
88+
- name: Setup gradle user name
89+
run: |
90+
mkdir -p ~/.gradle
91+
echo 'systemProp.user.name=spring-builds' >> ~/.gradle/gradle.properties
8192
- name: Deploy Docs
8293
run: |
8394
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"

0 commit comments

Comments
 (0)