action-android icon indicating copy to clipboard operation
action-android copied to clipboard

Unzip hangs on self-hosted runners

Open adiknoth opened this issue 5 years ago • 2 comments

https://github.com/Malinskiy/action-android/blob/903c42f17b6e122db0bfe6a9b7fdbdafdc868c6d/install-sdk/src/sdk.ts#L57

curl -L https://dl.google.com/android/repository/sdk-tools-darwin-4333796.zip -o /tmp/android-sdk.zip -s
unzip -q /tmp/android-sdk.zip -d /Users/ghrunner/android-sdk
replace /Users/ghrunner/android-sdk/tools/NOTICE.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: ::error::The process 'unzip' failed with exit code 80

Adding "-o" to the unzip command might fix it.

adiknoth avatar Jun 22 '20 12:06 adiknoth

Differently, checking for existence before extracting might be an option, too.

adiknoth avatar Jun 22 '20 12:06 adiknoth

@adiknoth why do you install the sdk if you have an installation on self-hosted runner already?

Malinskiy avatar Jun 23 '20 07:06 Malinskiy