更新 GitHub Actions 工作流,将提交日志步骤重命名并添加新的提交日志输出
This commit is contained in:
4
.github/workflows/git-log.yaml
vendored
4
.github/workflows/git-log.yaml
vendored
@@ -1,11 +1,13 @@
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
jobs:
|
jobs:
|
||||||
docker-run:
|
git-log:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 📥 检出代码
|
- name: 📥 检出代码
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
|
- name: 📝 提交日志
|
||||||
|
run: git --no-pager log -5 --oneline
|
||||||
- name: 📝 提交日志
|
- name: 📝 提交日志
|
||||||
run: |
|
run: |
|
||||||
git --no-pager log -5 --oneline --pretty=format:"%h - %an, %ar : %s"
|
git --no-pager log -5 --oneline --pretty=format:"%h - %an, %ar : %s"
|
Reference in New Issue
Block a user