mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted.git
synced 2025-06-12 22:06:31 +02:00
Warn on awesomebot fails
This commit is contained in:
@ -26,11 +26,12 @@ end
|
||||
|
||||
# Check syntax
|
||||
if has_readme_changes
|
||||
awesome_bot temp.md --allow-redirect --allow-ssl
|
||||
require 'json'
|
||||
syntaxresults = File.read 'syntaxcheck.json'
|
||||
sj = JSON.parse syntaxresults
|
||||
if sj['error']==true
|
||||
fail sj['title']
|
||||
warn sj['title']
|
||||
markdown sj['message']
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user