mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-25 14:56:18 +08:00
Fix check
This commit is contained in:
parent
ff3f4cfbf8
commit
800e5e1e62
@ -103,4 +103,11 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cat ~/.gradle/gradle.properties
|
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…
x
Reference in New Issue
Block a user