This repository was archived by the owner on Nov 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -78,14 +78,13 @@ task :whatsnew do
78
78
print 'Generating data for the What\'s New digest: $ ' . magenta
79
79
80
80
# Generate tmp/whats-new.yml
81
- report =
82
- if since . nil? || since . empty?
83
- `bin/whatsup_github since '#{ last_update } '`
84
- elsif since . is_a? String
85
- `bin/whatsup_github since #{ since } `
86
- else
87
- abort 'The "since" argument must be a string. Example: "jul 4"'
88
- end
81
+ if since . nil? || since . empty?
82
+ sh 'bin/whatsup_github' , 'since' , last_update
83
+ elsif since . is_a? String
84
+ sh 'bin/whatsup_github' , 'since' , since
85
+ else
86
+ abort 'The "since" argument must be a string. Example: "jul 4"'
87
+ end
89
88
90
89
# Merge generated tmp/whats-new.yml with existing src/_data/whats-new.yml
91
90
generated_data = YAML . load_file generated_file
@@ -95,9 +94,6 @@ task :whatsnew do
95
94
96
95
puts "Writing updates to #{ current_file } "
97
96
File . write current_file , current_data . to_yaml
98
-
99
- abort report if report . include? 'MISSING whatsnew'
100
- puts report
101
97
end
102
98
103
99
desc 'Generate index for Algolia'
You can’t perform that action at this time.
0 commit comments