From fd5ac226b12fa44385172283bef04ccbea8d66e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AE=80=E9=9D=99=E5=87=A1?= <30424139+wtto00@users.noreply.github.com> Date: Sat, 16 Sep 2023 01:50:11 +0800 Subject: [PATCH] chore: ci --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 22869f7..8ee7a86 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,12 +52,12 @@ jobs: run: | AVDMANAGER_PATH=$(which avdmanager) echo $AVDMANAGER_PATH - AVDMANAGER_DIR="${AVDMANAGER_PATH%/../*}" + AVDMANAGER_DIR=$(dirname "$AVDMANAGER_PATH") echo $AVDMANAGER_DIR ls $AVDMANAGER_DIR mkdir $ANDROID_HOME/cmdline-tools mkdir $ANDROID_HOME/cmdline-tools/latest - cp -r $AVDMANAGER_DIR $ANDROID_HOME/cmdline-tools/latest/ + cp -r $AVDMANAGER_DIR/../* $ANDROID_HOME/cmdline-tools/latest/ ls $ANDROID_HOME/cmdline-tools/latest/ - name: Run tests 👩🏽‍💻