File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 SBT_RUNNER_VERSION : ${{ inputs.sbt-runner-version }}
2020 SBT_CACHE_KEY_VERSION : 1.1.25
2121 run : |
22+ JDK_VERSION=0
23+ if [[ -x "$(command -v java)" ]]; then
24+ JDK_VERSION=$(java -version 2>&1 | head -n 1 | sed -e 's/.*"\(.*\)"\(.*\)/\1/; 1q')
25+ fi
2226 if [[ "$RUNNER_OS" == "Windows" ]]; then
2327 echo "sbt_toolpath=$RUNNER_TOOL_CACHE\\sbt\\$SBT_RUNNER_VERSION" >> "$GITHUB_OUTPUT"
2428 echo "sbt_downloadpath=$RUNNER_TEMP\\_sbt" >> "$GITHUB_OUTPUT"
3337 echo "sbt_diskcache=$HOME/.cache/sbt" >> "$GITHUB_OUTPUT"
3438 fi
3539 echo "sbt_cachekey=$RUNNER_OS-sbt-$SBT_RUNNER_VERSION-$SBT_CACHE_KEY_VERSION" >> "$GITHUB_OUTPUT"
36- echo "sbt_diskcachekey=$RUNNER_OS-sbt-diskcache-$SBT_CACHE_KEY_VERSION" >> "$GITHUB_OUTPUT"
40+ echo "sbt_diskcachekey=$RUNNER_OS-java$JDK_VERSION- sbt-diskcache-$SBT_CACHE_KEY_VERSION" >> "$GITHUB_OUTPUT"
3741 - name : Check Tool Cache
3842 id : cache-tool-dir
3943 shell : bash
You can’t perform that action at this time.
0 commit comments