Skip to content

Commit 9eb6918

Browse files
Update update-lint-and-build.yml
1 parent e922048 commit 9eb6918

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/update-lint-and-build.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,14 @@ jobs:
7373
- uses: actions/checkout@master
7474
with:
7575
ref: ${{ matrix.version }}
76-
- run: sphinx-lint
76+
- run: |
77+
sphinx-lint | while IFS= read -r line; do
78+
if [[ $line == *"WARNING:"* ]]; then
79+
echo "::warning file=${{ matrix.version }}::$line"
80+
elif [[ $line == *"ERROR:"* ]]; then
81+
echo "::error file=${{ matrix.version }}::$line"
82+
fi
83+
done
7784
7885
build-translation:
7986
runs-on: ubuntu-latest
@@ -98,7 +105,14 @@ jobs:
98105
path: Doc/locales/pl/LC_MESSAGES
99106
- run: git pull
100107
working-directory: ./Doc/locales/pl/LC_MESSAGES
101-
- run: make -e SPHINXOPTS="-D language='pl' -D gettext_compact=0 -W --keep-going" ${{ matrix.format }}
108+
- run: |
109+
make -e SPHINXOPTS="-D language='pl' -D gettext_compact=0 -W --keep-going" ${{ matrix.format }} 2>&1 | while IFS= read -r line; do
110+
if [[ $line == *"WARNING:"* ]]; then
111+
echo "::warning::$line"
112+
elif [[ $line == *"ERROR:"* ]]; then
113+
echo "::error::$line"
114+
fi
115+
done
102116
working-directory: ./Doc
103117
- uses: actions/upload-artifact@master
104118
with:

0 commit comments

Comments
 (0)