更新 build.yml

This commit is contained in:
allMagic
2024-06-15 16:43:27 +08:00
committed by GitHub
parent a8ea33b3b2
commit 5994b38a4b
+7 -2
View File
@@ -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: