更新 build.yml
This commit is contained in:
@@ -31,11 +31,16 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
Hash=`git rev-parse --short HEAD`
|
|
||||||
echo echo "Describe=$Hash" >> $GITHUB_ENV
|
|
||||||
Describe=`git describe --tags`
|
Describe=`git describe --tags`
|
||||||
echo "Describe=$Describe" >> $GITHUB_ENV
|
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
|
- name: Setup MSBuild.exe
|
||||||
uses: microsoft/setup-msbuild@v2
|
uses: microsoft/setup-msbuild@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user