将git log pretty format中raw body替换为subject, 避免revert commit多行输出

This commit is contained in:
VillagerTom
2024-02-21 23:55:50 +08:00
parent 04186cdd5b
commit 4642c2a847

View File

@ -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: 更新版本号