File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 steps :
1111 - name : 🚚 checkout code
1212 uses : actions/checkout@v3
13+ with :
14+ fetch-depth : 0
1315 - name : 🍱 download packages
1416 uses : awalsh128/cache-apt-pkgs-action@latest
1517 with :
Original file line number Diff line number Diff line change 55firebase-debug.log
66** .report.html
77.vscode
8+ changelog.json
Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ def to_json(*a)
3030 end
3131end
3232
33+ def log ( msg )
34+ puts "changelog!: #{ msg } "
35+ end
36+
3337require 'json'
3438require 'time'
3539
@@ -40,6 +44,8 @@ def to_json(*a)
4044
4145branch = `git rev-parse --abbrev-ref HEAD` . strip
4246raw = `git log origin/#{ branch } --pretty=format:"%B||%ad||%H||%an#{ delim } " --date=short`
47+ log ( "found #{ raw . split ( delim ) . length } commits" )
48+
4349commits = [ ]
4450raw . split ( delim ) . each do |line |
4551 commit = Commit . new
@@ -89,4 +95,4 @@ def to_json(*a)
8995 f . write ( JSON . pretty_generate ( commits ) )
9096end
9197
92- puts "changelog!: processed and outputed changelog in #{ Time . now - start } seconds"
98+ log ( " processed changelog in #{ Time . now - start } seconds")
You can’t perform that action at this time.
0 commit comments