Skip to content

Commit 646c82c

Browse files
authored
Merge pull request #9 from sbt/wip/home2
Use HOME to pick the download dir
2 parents 8a071aa + c240c31 commit 646c82c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

action.yml

+2-8
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,14 @@ runs:
1212
id: cache-paths
1313
shell: bash
1414
run: |
15-
if [[ "$RUNNER_OS" == "Windows" ]]; then
16-
echo "setupsbt_path=D:/a/_setupsbt" >> $GITHUB_OUTPUT
17-
elif [[ "$RUNNER_OS" == "macOS" ]]; then
18-
echo "setupsbt_path=/Users/runner/work/_setupsbt" >> $GITHUB_OUTPUT
19-
else
20-
echo "setupsbt_path=/home/runner/work/_setupsbt" >> $GITHUB_OUTPUT
21-
fi
15+
echo "setupsbt_path=$HOME/work/_setupsbt" >> $GITHUB_OUTPUT
2216
2317
- name: Cache sbt distribution
2418
id: cache-dir
2519
uses: actions/cache@v4
2620
with:
2721
path: ${{ steps.cache-paths.outputs.setupsbt_path }}
28-
key: ${{ runner.os }}-sbt-${{ inputs.sbt-runner-version }}
22+
key: ${{ runner.os }}-sbt-${{ inputs.sbt-runner-version }}-1.1.1
2923

3024
- name: "Install sbt"
3125
shell: bash

0 commit comments

Comments
 (0)