Browse Source

更新 build.yml

allMagic 2 years ago
parent
commit
695fdc9068
1 changed files with 2 additions and 6 deletions
  1. 2 6
      .github/workflows/build.yml

+ 2 - 6
.github/workflows/build.yml

@@ -27,15 +27,11 @@ jobs:
       with:
       with:
         fetch-depth: 0
         fetch-depth: 0
 
 
-    - name: Set Hash
-      shell: bash
-      run: |
-          Hash=`git rev-parse --short HEAD`
-          echo "Describe=$Describe" >> $GITHUB_ENV
-
     - name: Set Describe
     - name: Set Describe
       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