File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 2020 shell : pwsh
2121 run : |
2222 $tag = $env:GITHUB_REF -replace 'refs/tags/', ''
23- echo "version=$tag" >> $env:GITHUB_OUTPUT
24- echo "Version: $tag"
23+ # 去掉 v 前缀(如果有)
24+ $version = $tag -replace '^v', ''
25+ echo "version=$version" >> $env:GITHUB_OUTPUT
26+ echo "tag=$tag" >> $env:GITHUB_OUTPUT
27+ echo "Version: $version (Tag: $tag)"
2528
2629 - name : Read release notes
2730 id : release_notes
8285 uses : softprops/action-gh-release@v1
8386 if : steps.find_file.outputs.found == 'true'
8487 with :
85- name : Release v ${{ steps.get_version.outputs.version }}
88+ name : Release ${{ steps.get_version.outputs.tag }}
8689 body : ${{ steps.release_notes.outputs.body }}
8790 draft : false
8891 prerelease : false
Original file line number Diff line number Diff line change 1212- [ eeb29a8] 🐛 fix: 添加贡献者和问题id等属性,添加自动分类功能
1313
1414### 🔧 其他
15+ - [ c2966f8] 📝 docs: 准备发布 v0.2.0
1516- [ 6246a31] 📝 docs: 准备发布 v0.2.0
1617- [ 44ca1c8] 📝 docs: 准备发布 v0.2.0
1718- [ 7636cb4] 📝 docs: 准备发布 v0.2.0
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ git add .
209209
210210$gitStatus = git status -- porcelain
211211if (-not [string ]::IsNullOrWhiteSpace($gitStatus )) {
212- git commit - m " 📝 docs: 准备发布 $TagVersion "
212+ git commit - m " 🐳 chore: 发布 $TagVersion "
213213 if ($LASTEXITCODE -ne 0 ) {
214214 Write-Host " 错误: 提交更改失败" - ForegroundColor Red
215215 exit 1
You can’t perform that action at this time.
0 commit comments