From 519b9a8b9bd72c6e19fb6ea40e3ec412ac371381 Mon Sep 17 00:00:00 2001 From: fengyuecanzhu <1021300691@qq.com> Date: Mon, 21 Jun 2021 19:03:46 +0800 Subject: [PATCH] update actions --- .github/workflows/reader.yml | 42 ++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/reader.yml b/.github/workflows/reader.yml index 9d346d2..aa803bf 100644 --- a/.github/workflows/reader.yml +++ b/.github/workflows/reader.yml @@ -23,30 +23,30 @@ jobs: path: keystore # 仓库的根目录名 # 读取配置 - name: Prepare Config - id: config - run: | - echo "读取配置" - source ${{ github.workspace }}/app/version_code.properties - version=$VERSION_CODE - hun=$(expr ${version} / 100) - ten=$(expr ${version} / 10) - ten=$(expr ${ten} % 10) - one=$(expr ${version} % 10) - versionN=v$hun.$ten.$one + id: config + run: | + echo "读取配置" + source ${{ github.workspace }}/app/version_code.properties + version=$VERSION_CODE + hun=$(expr ${version} / 100) + ten=$(expr ${version} / 10) + ten=$(expr ${ten} % 10) + one=$(expr ${version} % 10) + versionN=v$hun.$ten.$one - echo ::set-output name=need_create_release::"$NEED_CREATE_RELEASE" - echo ::set-output name=version_name::"$versionN" + echo ::set-output name=need_create_release::"$NEED_CREATE_RELEASE" + echo ::set-output name=version_name::"$versionN" - echo need_create_release=$NEED_CREATE_RELEASE - echo version_name=$versionN + echo need_create_release=$NEED_CREATE_RELEASE + echo version_name=$versionN - if [[ $NEED_CREATE_RELEASE == 'true' ]];then - echo ::set-output name=lanzou_folder_id::"1608604" - echo ::set-output name=lanzou_share_url::"https://fycz.lanzoui.com/b00ngso7e" - else - echo ::set-output name=lanzou_folder_id::"2226473" - echo ::set-output name=lanzou_share_url::"https://fycz.lanzoui.com/b00nu1f8d" - fi + if [[ $NEED_CREATE_RELEASE == 'true' ]];then + echo ::set-output name=lanzou_folder_id::"1608604" + echo ::set-output name=lanzou_share_url::"https://fycz.lanzoui.com/b00ngso7e" + else + echo ::set-output name=lanzou_folder_id::"2226473" + echo ::set-output name=lanzou_share_url::"https://fycz.lanzoui.com/b00nu1f8d" + fi # 编译打包 - name: Build With Gradle run: |