mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted.git
synced 2024-12-30 21:34:19 +00:00
Warn on awesomebot fails
This commit is contained in:
parent
f584b1502e
commit
08ef1288a8
@ -13,7 +13,6 @@ before_script:
|
|||||||
script:
|
script:
|
||||||
- git diff master.. -U0 README.md | grep -Pos "(?<=^\+).*" >> temp.md || (exit 0)
|
- git diff master.. -U0 README.md | grep -Pos "(?<=^\+).*" >> temp.md || (exit 0)
|
||||||
- node test.js temp.md
|
- node test.js temp.md
|
||||||
- awesome_bot temp.md --allow-redirect --allow-ssl
|
|
||||||
- danger --verbose
|
- danger --verbose
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
|
@ -26,11 +26,12 @@ end
|
|||||||
|
|
||||||
# Check syntax
|
# Check syntax
|
||||||
if has_readme_changes
|
if has_readme_changes
|
||||||
|
awesome_bot temp.md --allow-redirect --allow-ssl
|
||||||
require 'json'
|
require 'json'
|
||||||
syntaxresults = File.read 'syntaxcheck.json'
|
syntaxresults = File.read 'syntaxcheck.json'
|
||||||
sj = JSON.parse syntaxresults
|
sj = JSON.parse syntaxresults
|
||||||
if sj['error']==true
|
if sj['error']==true
|
||||||
fail sj['title']
|
warn sj['title']
|
||||||
markdown sj['message']
|
markdown sj['message']
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user