-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Labels
help wantedExtra attention is neededExtra attention is neededwontfixThis will not be worked onThis will not be worked on
Description
If JAVA_HOME is set on the runner to something other than the default, the action fails with:
ERROR: JAVA_HOME is set to an invalid directory: /opt/hostedtoolcache/Java_Adopt_jdk/11.0.11-9/x64
Removing the Set up JDK 11 step allows the workflow to proceed without issue.
Sample workflow causing the error:
on:
push:
jobs:
get-version:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Get version from
uses: madhead/read-java-properties@c2ad203dff7a56a06aab9e3586bef5c1e36409c2
id: version
with:
file: gradle.properties
property: version
SettingDust and madhead
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is neededwontfixThis will not be worked onThis will not be worked on