Skip to content

Commit 6444f4c

Browse files
authored
Merge pull request #112 from sbt/wip/unzip-test
Test if unzip actually worked
2 parents ca1e874 + d518b45 commit 6444f4c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎action.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ runs:
1717
shell: bash
1818
env:
1919
SBT_RUNNER_VERSION: ${{ inputs.sbt-runner-version }}
20-
SBT_CACHE_KEY_VERSION: 1.1.25
20+
SBT_CACHE_KEY_VERSION: 1.5.2
2121
run: |
2222
JDK_VERSION=0
2323
if [[ -x "$(command -v java)" ]]; then
@@ -81,10 +81,11 @@ runs:
8181
"$SBT_DOWNLOADPATH/sbt-$SBT_RUNNER_VERSION.zip"
8282
curl -sL "https://github.com/sbt/sbt/releases/download/v$SBT_RUNNER_VERSION/sbt-$SBT_RUNNER_VERSION.zip.asc" > \
8383
"$SBT_DOWNLOADPATH/sbt-$SBT_RUNNER_VERSION.zip.asc"
84-
8584
cd "$SBT_DOWNLOADPATH"
8685
unzip -o "sbt-$SBT_RUNNER_VERSION.zip" -d "$SBT_TOOLPATH"
87-
86+
if [[ ! -f "$SBT_TOOLPATH/sbt/bin/sbt" ]]; then
87+
exit 1
88+
fi
8889
- name: "Verify the sbt distribution signature"
8990
id: "ampel-verify"
9091
# Skip on Windows/macOS until go-billy path fix lands: https://github.com/go-git/go-billy/issues/194

0 commit comments

Comments
 (0)