新增 GitHub Actions 工作流以输出最近5次提交日志
Some checks are pending
/ test-timezone (push) Waiting to run
/ docker-run (push) Successful in -5s
/ Cache-Java-Test (push) Successful in -5s
/ opt_hostedtoolcache (push) Successful in -32s
/ job2 (push) Successful in -32s
/ job3 (push) Has been skipped
/ job1 (push) Successful in -32s
/ hashFiles (push) Successful in -32s
/ go-hashfiles (push) Successful in 29s

This commit is contained in:
严浩
2025-02-21 16:14:55 +08:00
parent 1333c87c2b
commit b76ff4f3fc

11
.github/workflows/git-log.yaml vendored Normal file
View File

@ -0,0 +1,11 @@
on:
push:
jobs:
docker-run:
runs-on: ubuntu-latest
steps:
- name: 📥 检出代码
uses: actions/checkout@main
- name: 📝 最近5次提交日志
run: |
git log -5 --pretty=format:"%h - %an, %ar : %s"