diff --git "a/.github/workflows/\345\217\221\345\270\203\350\275\257\344\273\266.yml" "b/.github/workflows/\345\217\221\345\270\203\350\275\257\344\273\266.yml" index 0dd7517..4bd980b 100644 --- "a/.github/workflows/\345\217\221\345\270\203\350\275\257\344\273\266.yml" +++ "b/.github/workflows/\345\217\221\345\270\203\350\275\257\344\273\266.yml" @@ -35,7 +35,7 @@ jobs: - name: 更新描述文件 run: | pwd - ls + git log --pretty=format:"%an | %s | %h | %ad | %H" --date=format:'%Y-%m-%d %H:%M' $(git describe --tags --abbrev=0)^..HEAD cd ./citool/gitLogSum/ go run gitLogSum.go > updateLog.md cat updateLog.md diff --git a/citool/gitLogSum/gitLogSum.go b/citool/gitLogSum/gitLogSum.go index 0e038ca..9100e33 100644 --- a/citool/gitLogSum/gitLogSum.go +++ b/citool/gitLogSum/gitLogSum.go @@ -17,7 +17,7 @@ func main() { if err != nil { fmt.Printf("Command failed with error: %v\n", err) fmt.Printf("Combined Output:\n%s\n", out) - panic(err) + panic(out) } // 输出结果 //println(string(out))