From 5994b38a4baa20a534491de62fa2352d7861f9ad Mon Sep 17 00:00:00 2001 From: allMagic <116283787+allMagicNB@users.noreply.github.com> Date: Sat, 15 Jun 2024 16:43:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20build.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c4d5958..37a178d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,11 +31,16 @@ jobs: continue-on-error: true shell: bash run: | - Hash=`git rev-parse --short HEAD` - echo echo "Describe=$Hash" >> $GITHUB_ENV Describe=`git describe --tags` echo "Describe=$Describe" >> $GITHUB_ENV + - name: Set Hash when Describe is `` + if: ${{ env.Describe}}=`` + shell: bash + run: | + Hash=`git rev-parse --short HEAD` + echo "Describe=$Hash" >> $GITHUB_ENV + - name: Setup MSBuild.exe uses: microsoft/setup-msbuild@v2 with: