将git log pretty format中raw body替换为subject, 避免revert commit多行输出
This commit is contained in:
2
.github/workflows/alpha.yml
vendored
2
.github/workflows/alpha.yml
vendored
@ -45,7 +45,7 @@ jobs:
|
|||||||
- name: 获取最后一次提交
|
- name: 获取最后一次提交
|
||||||
id: get-last-commit
|
id: get-last-commit
|
||||||
run: |
|
run: |
|
||||||
last_commit=$(git log -1 --pretty="%h %B" --first-parent)
|
last_commit=$(git log -1 --pretty="%h %s" --first-parent)
|
||||||
echo "last_commit=$last_commit" >> $GITHUB_OUTPUT
|
echo "last_commit=$last_commit" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: 更新版本号
|
- name: 更新版本号
|
||||||
|
Reference in New Issue
Block a user