From bf1fd28ad34391d7376eb00223949b108485396b Mon Sep 17 00:00:00 2001 From: fengyue Date: Wed, 4 May 2022 09:22:56 +0800 Subject: [PATCH] fix syntax --- .github/workflows/reader.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reader.yml b/.github/workflows/reader.yml index 82e7efb..ca94e7e 100644 --- a/.github/workflows/reader.yml +++ b/.github/workflows/reader.yml @@ -51,7 +51,7 @@ jobs: run: | echo "开始编译打包" chmod +x gradlew - if [[ ${{ steps.config.outputs.create_release }} == 'true' ] -o [ ${{ steps.config.outputs.build_release }} == 'true' ]];then + if [ ${{ steps.config.outputs.create_release }} == 'true' -o ${{ steps.config.outputs.build_release }} == 'true' ];then echo "进行release构建" ./gradlew assembleRelease --parallel else @@ -62,7 +62,7 @@ jobs: id: get_path run: | path="$GITHUB_WORKSPACE/app/build/outputs/apk/release" - if [[ ${{ steps.config.outputs.create_release }} != 'true' ] -a [ ${{ steps.config.outputs.build_release }} != 'true' ]];then + if [ ${{ steps.config.outputs.create_release }} != 'true' -a ${{ steps.config.outputs.build_release }} != 'true' ];then path="$GITHUB_WORKSPACE/app/build/outputs/apk/debug" fi files=$(ls $path)