Skip to content

Commit

Permalink
Add CI check for documentation deploy errors (#2378)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlylt authored Nov 26, 2023
1 parent 17b3178 commit c7d912d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,13 @@ jobs:
- name: Deploy UG on release, to markbind.org
if: github.ref_type == 'tag'
run: npm run deploy:ug
- name: Check deploy log
run: |
log_file="docs/_markbind/logs/markbind-$(date +'%Y-%m-%d').log"
pattern="^[0-9T:.Z-]+ - error:"
if grep -q -E "$pattern" "$log_file"; then
printf "The following issues were found when deploying the documentation:\n"
grep -E "$pattern" "$log_file"
exit 1
fi

0 comments on commit c7d912d

Please sign in to comment.