ci: add problem matcher for Docusaurus output (#496)
This commit is contained in:
Родитель
4476f3a5e7
Коммит
40cebcc6a2
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"problemMatcher": [
|
||||
{
|
||||
"owner": "docusaurus",
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": "^\\[(WARNING)\\] (.*)$",
|
||||
"severity": 1,
|
||||
"message": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -54,6 +54,8 @@ jobs:
|
|||
- name: Rewrite docs paths if version branch
|
||||
if: ${{ inputs.branch == 'version' }}
|
||||
run: node scripts/build-as-doc-version.js $(GIT_BRANCH)
|
||||
- name: Add Docusaurus problem matcher
|
||||
run: echo "::add-matcher::.github/problem-matchers/docusaurus.json"
|
||||
- name: Build default locale site
|
||||
run: yarn build
|
||||
env:
|
||||
|
|
|
@ -38,6 +38,9 @@ jobs:
|
|||
# env:
|
||||
# SAS: ${{ secrets.SAS }}
|
||||
|
||||
- name: Add Docusaurus problem matcher
|
||||
run: echo "::add-matcher::.github/problem-matchers/docusaurus.json"
|
||||
|
||||
- name: Build
|
||||
run: yarn i18n:build
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче