更新 build.yml
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user