diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d018bf9b..6a437532 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,15 +41,15 @@ jobs: # 只签出第一层 fetch-depth: 0 - - name: 导出提交哈希 + - name: 导出提交描述 shell: bash run: | Describe=`git describe --tags` echo "Describe=$Describe" >> $GITHUB_ENV continue-on-error: true - # 在极少数情况下,可能没有可用的哈希。详见 https://github.com/Silverteal/PCL2/actions/runs/9518525229/job/26239628548 - - name: 若导出提交哈希出错,导出备用描述字符串 + # 在极少数情况下,可能没有可用的提交描述。详见 https://github.com/Silverteal/PCL2/actions/runs/9518525229/job/26239628548 + - name: 导出备用描述 shell: bash run: | echo "Describe=unknown" >> $GITHUB_ENV