Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Silverteal committed Jun 14, 2024
1 parent e6125fe commit 4844f0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4844f0a

Please sign in to comment.