mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-22 00:52:50 +00:00
Fix check
This commit is contained in:
parent
ff3f4cfbf8
commit
800e5e1e62
1 changed files with 8 additions and 1 deletions
|
@ -103,4 +103,11 @@ jobs:
|
|||
shell: bash
|
||||
run: |
|
||||
cat ~/.gradle/gradle.properties
|
||||
grep -q 'org.gradle.java.installations.fromEnv=JAVA_HOME' && exit 1
|
||||
if grep -q 'org.gradle.java.installations.fromEnv=JAVA_HOME' ~/.gradle/gradle.properties ; then
|
||||
echo 'Found overwritten fromEnv'
|
||||
exit 1
|
||||
fi
|
||||
if ! grep -q 'org.gradle.java.installations.fromEnv=XXXXX' ~/.gradle/gradle.properties ; then
|
||||
echo 'Did NOT find original fromEnv'
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue