sormuras / download-jdk

FUP2 https://github.com/oracle-actions/setup-java

Home Page:https://github.com/oracle-actions/setup-java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove Mac OS "Contents/Home" workaround

sormuras opened this issue · comments

actions/setup-java#139 (comment)

may supersede

download-jdk/action.yml

Lines 32 to 42 in 09f9809

- name: 'Repackage tarball on Mac OS'
shell: bash
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
echo 'Repackage tarball on Mac OS'
JDK_EXTRACTED=${HOME}/downloaded-jdk-${{ inputs.feature }}
mkdir ${JDK_EXTRACTED}
tar --extract --file ${JDK_FILE} -C ${JDK_EXTRACTED} --strip-components 4
rm ${JDK_FILE}
tar --create --file ${JDK_FILE} -C ${HOME} downloaded-jdk-${{ inputs.feature }}
fi