Skip to content

Commit 8d25cb5

Browse files
committed
添加更新信息,去除掉版本号多余的0 v1.0.6
1 parent 07037d4 commit 8d25cb5

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ jobs:
1010
contents: write
1111
steps:
1212
- uses: actions/checkout@v4
13+
- name: get date
14+
id: get-date
15+
run: echo "timestamp=$(date -u '+%Y-%m-%d %H:%M:%S UTC')" >> $GITHUB_OUTPUT
16+
1317
- name: Create release archive
1418
run: zip -r out/OIAPI.zip src/
1519

@@ -46,7 +50,16 @@ jobs:
4650
tag: "V${{ env.CURRENT_VER }}"
4751
name: OIAPI V${{ env.CURRENT_VER }}
4852
body: |
49-
# 更新内容
53+
## 🚀 版本更新日志 V${{ env.CURRENT_VER }}
54+
**提交信息**
55+
```plaintext
56+
${{ format('{0}', github.event.head_commit.message) }}
57+
```
58+
59+
### 构建详情
60+
- 提交者: ${{ github.actor }}
61+
- 提交SHA: [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }})
62+
- 触发时间: ${{ steps.get-date.outputs.timestamp }}
5063
artifacts: OIAPI.zip
5164
allowUpdates: true
5265
removeArtifacts: true

0 commit comments

Comments
 (0)