Skip to content

Commit f54a146

Browse files
committed
21.5 beta 3: fix workflow and changelog issues
1 parent 62d192b commit f54a146

4 files changed

Lines changed: 10 additions & 867 deletions

File tree

.github/workflows/deploy-merge.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
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:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ target
55
firebase-debug.log
66
**.report.html
77
.vscode
8+
changelog.json

build-changelog.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ def to_json(*a)
3030
end
3131
end
3232

33+
def log(msg)
34+
puts "changelog!: #{msg}"
35+
end
36+
3337
require 'json'
3438
require 'time'
3539

@@ -40,6 +44,8 @@ def to_json(*a)
4044

4145
branch = `git rev-parse --abbrev-ref HEAD`.strip
4246
raw = `git log origin/#{branch} --pretty=format:"%B||%ad||%H||%an#{delim}" --date=short`
47+
log("found #{raw.split(delim).length} commits")
48+
4349
commits = []
4450
raw.split(delim).each do |line|
4551
commit = Commit.new
@@ -89,4 +95,4 @@ def to_json(*a)
8995
f.write(JSON.pretty_generate(commits))
9096
end
9197

92-
puts "changelog!: processed and outputed changelog in #{Time.now - start} seconds"
98+
log("processed changelog in #{Time.now - start} seconds")

0 commit comments

Comments
 (0)