Skip to content

Commit 36f6e0d

Browse files
committed
Avoid using the working directory
1 parent 294b8d7 commit 36f6e0d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

action.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ runs:
1212
id: cache-dir
1313
uses: actions/cache@v4
1414
with:
15-
path: setupsbt
15+
path: ~/setupsbt
1616
key: ${{ runner.os }}-sbt-${{ inputs.sbt-runner-version }}
1717

1818
- name: "Install sbt"
1919
shell: bash
2020
if: steps.cache-dir.outputs.cache-hit != 'true'
2121
run: |
22-
mkdir -p setupsbt
23-
curl -sL https://github.com/sbt/sbt/releases/download/v$SBT_RUNNER_VERSION/sbt-$SBT_RUNNER_VERSION.zip > setupsbt/sbt-$SBT_RUNNER_VERSION.zip
24-
pushd setupsbt
22+
mkdir -p ~/setupsbt
23+
curl -sL https://github.com/sbt/sbt/releases/download/v$SBT_RUNNER_VERSION/sbt-$SBT_RUNNER_VERSION.zip > ~/setupsbt/sbt-$SBT_RUNNER_VERSION.zip
24+
pushd ~/setupsbt
2525
unzip -o "sbt-$SBT_RUNNER_VERSION.zip"
2626
popd
2727
env:
@@ -30,7 +30,7 @@ runs:
3030
- name: "Setup PATH"
3131
shell: bash
3232
run: |
33-
pushd setupsbt
33+
pushd ~/setupsbt
3434
ls sbt/bin/sbt
3535
echo "$PWD/sbt/bin" >> "$GITHUB_PATH"
3636
popd

0 commit comments

Comments
 (0)