Skip to content

Commit 1d385ba

Browse files
committed
优化测试版本命名格式:使用SHA前8个字符作为版本名称
1 parent e4bb49b commit 1d385ba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ jobs:
8888
if: github.ref == 'refs/heads/test-workflow' && github.event_name == 'push'
8989
uses: softprops/action-gh-release@v1
9090
with:
91-
tag_name: test-${{ github.sha }}
92-
name: 测试版本 ${{ github.sha }}
91+
tag_name: test-${{ github.sha }} # 使用完整SHA作为标签确保唯一性
92+
name: 测试版本 ${{ substr(github.sha, 0, 8) }} # 使用SHA前缀提高可读性
9393
draft: false
9494
prerelease: true
9595
body: |

0 commit comments

Comments
 (0)