Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.
This repository was archived by the owner on Mar 28, 2022. It is now read-only.

Remove Mac OS "Contents/Home" workaround #19

@sormuras

Description

@sormuras

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions