From eee08f71f10b5954266b1d63c1c32229bc3674fa Mon Sep 17 00:00:00 2001 From: fengyuecanzhu <1021300691@qq.com> Date: Sun, 29 May 2022 16:52:29 +0800 Subject: [PATCH] update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1129f16..3d8345d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,7 +64,7 @@ jobs: run: | echo "上传APP至蓝奏云" tag_name=${{ steps.config.outputs.version_name }} - if [[ ${{ steps.config.outputs.need_create_release }} != 'true' ]];then + if [ ${{ steps.config.outputs.need_create_release }} != 'true' -o ${{ github.ref }} != 'refs/heads/master' ];then gitHead=$(git rev-parse --short HEAD) tag_name=${{ steps.config.outputs.version_name }}-$gitHead fi