更新 GitHub Actions 工作流,增加提交日志输出的深度和格式化步骤
Some checks are pending
/ test-timezone (push) Waiting to run
/ docker-run (push) Successful in -6s
/ git-log (push) Successful in -30s
/ Cache-Java-Test (push) Successful in -31s
/ opt_hostedtoolcache (push) Successful in -32s
/ go-hashfiles (push) Successful in 8s
/ hashFiles (push) Successful in -6s
/ job2 (push) Successful in -33s
/ job1 (push) Successful in -33s
/ job3 (push) Has been skipped
Some checks are pending
/ test-timezone (push) Waiting to run
/ docker-run (push) Successful in -6s
/ git-log (push) Successful in -30s
/ Cache-Java-Test (push) Successful in -31s
/ opt_hostedtoolcache (push) Successful in -32s
/ go-hashfiles (push) Successful in 8s
/ hashFiles (push) Successful in -6s
/ job2 (push) Successful in -33s
/ job1 (push) Successful in -33s
/ job3 (push) Has been skipped
This commit is contained in:
7
.github/workflows/git-log.yaml
vendored
7
.github/workflows/git-log.yaml
vendored
@ -6,8 +6,13 @@ jobs:
|
||||
steps:
|
||||
- name: 📥 检出代码
|
||||
uses: actions/checkout@main
|
||||
with:
|
||||
fetch-depth: 5
|
||||
- name: 📝 提交日志
|
||||
run: git --no-pager log -5 --oneline
|
||||
- name: 📝 提交日志
|
||||
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"
|
||||
- name: 📝 提交日志
|
||||
run: |
|
||||
git --no-pager log -5 --pretty=format:"%h - %an, %ar : %s"
|
Reference in New Issue
Block a user