Files
act-runner-example/.github/workflows/git-log.yaml
严浩 35784d9a9e
Some checks are pending
/ test-timezone (push) Waiting to run
/ docker-run (push) Successful in -31s
/ git-log (push) Successful in -4s
/ hashFiles (push) Successful in -32s
/ go-hashfiles (push) Successful in -14s
/ Cache-Java-Test (push) Successful in -5s
/ opt_hostedtoolcache (push) Successful in -6s
/ job1 (push) Successful in -7s
/ job2 (push) Successful in -32s
/ job3 (push) Has been skipped
更新 GitHub Actions 工作流,修改提交日志输出格式以包含日期和时间
2025-02-21 16:26:52 +08:00

13 lines
311 B
YAML

on:
push:
jobs:
git-log:
runs-on: ubuntu-latest
steps:
- name: 📥 检出代码
uses: actions/checkout@main
with:
fetch-depth: 5
- name: 📝 提交日志
run: |
git --no-pager log --pretty=format:"%h %ad %s" --date=format:'%Y-%m-%d %H:%M:%S'