File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 73
73
- uses : actions/checkout@master
74
74
with :
75
75
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
77
84
78
85
build-translation :
79
86
runs-on : ubuntu-latest
@@ -98,7 +105,14 @@ jobs:
98
105
path : Doc/locales/pl/LC_MESSAGES
99
106
- run : git pull
100
107
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
102
116
working-directory: ./Doc
103
117
- uses : actions/upload-artifact@master
104
118
with :
You can’t perform that action at this time.
0 commit comments