From 9eb69181b009a3e567d9af27181cadf0314b3803 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Sun, 26 Jan 2025 10:48:41 +0000 Subject: [PATCH 1/4] Update update-lint-and-build.yml --- .github/workflows/update-lint-and-build.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-lint-and-build.yml b/.github/workflows/update-lint-and-build.yml index b124539b3..4fd5a3f4a 100644 --- a/.github/workflows/update-lint-and-build.yml +++ b/.github/workflows/update-lint-and-build.yml @@ -73,7 +73,14 @@ jobs: - uses: actions/checkout@master with: ref: ${{ matrix.version }} - - run: sphinx-lint + - run: | + sphinx-lint | while IFS= read -r line; do + if [[ $line == *"WARNING:"* ]]; then + echo "::warning file=${{ matrix.version }}::$line" + elif [[ $line == *"ERROR:"* ]]; then + echo "::error file=${{ matrix.version }}::$line" + fi + done build-translation: runs-on: ubuntu-latest @@ -98,7 +105,14 @@ jobs: path: Doc/locales/pl/LC_MESSAGES - run: git pull working-directory: ./Doc/locales/pl/LC_MESSAGES - - run: make -e SPHINXOPTS="-D language='pl' -D gettext_compact=0 -W --keep-going" ${{ matrix.format }} + - run: | + make -e SPHINXOPTS="-D language='pl' -D gettext_compact=0 -W --keep-going" ${{ matrix.format }} 2>&1 | while IFS= read -r line; do + if [[ $line == *"WARNING:"* ]]; then + echo "::warning::$line" + elif [[ $line == *"ERROR:"* ]]; then + echo "::error::$line" + fi + done working-directory: ./Doc - uses: actions/upload-artifact@master with: From 57635b7b69449cfc96eb0a1e17ca3db7f286e584 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Mon, 27 Jan 2025 20:39:14 +0000 Subject: [PATCH 2/4] Use --color --- .github/workflows/update-lint-and-build.yml | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/.github/workflows/update-lint-and-build.yml b/.github/workflows/update-lint-and-build.yml index 4fd5a3f4a..43734da45 100644 --- a/.github/workflows/update-lint-and-build.yml +++ b/.github/workflows/update-lint-and-build.yml @@ -73,14 +73,7 @@ jobs: - uses: actions/checkout@master with: ref: ${{ matrix.version }} - - run: | - sphinx-lint | while IFS= read -r line; do - if [[ $line == *"WARNING:"* ]]; then - echo "::warning file=${{ matrix.version }}::$line" - elif [[ $line == *"ERROR:"* ]]; then - echo "::error file=${{ matrix.version }}::$line" - fi - done + - run: sphinx-lint --color build-translation: runs-on: ubuntu-latest @@ -105,15 +98,7 @@ jobs: path: Doc/locales/pl/LC_MESSAGES - run: git pull working-directory: ./Doc/locales/pl/LC_MESSAGES - - run: | - make -e SPHINXOPTS="-D language='pl' -D gettext_compact=0 -W --keep-going" ${{ matrix.format }} 2>&1 | while IFS= read -r line; do - if [[ $line == *"WARNING:"* ]]; then - echo "::warning::$line" - elif [[ $line == *"ERROR:"* ]]; then - echo "::error::$line" - fi - done - working-directory: ./Doc + - run: make -e SPHINXOPTS="--color -D language='pl' -D gettext_compact=0 -W --keep-going" ${{ matrix.format }} - uses: actions/upload-artifact@master with: name: build-${{ matrix.version }}-${{ matrix.format }} From d0d76a629386e04fb2b1fd262046902ed41f6204 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Mon, 27 Jan 2025 20:39:56 +0000 Subject: [PATCH 3/4] Fix accidentaly removed line --- .github/workflows/update-lint-and-build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-lint-and-build.yml b/.github/workflows/update-lint-and-build.yml index 43734da45..bfbae69f4 100644 --- a/.github/workflows/update-lint-and-build.yml +++ b/.github/workflows/update-lint-and-build.yml @@ -99,6 +99,7 @@ jobs: - run: git pull working-directory: ./Doc/locales/pl/LC_MESSAGES - run: make -e SPHINXOPTS="--color -D language='pl' -D gettext_compact=0 -W --keep-going" ${{ matrix.format }} + working-directory: ./Doc - uses: actions/upload-artifact@master with: name: build-${{ matrix.version }}-${{ matrix.format }} From 4479b1942477983377cab839bd086be2a730c858 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Mon, 27 Jan 2025 20:57:15 +0000 Subject: [PATCH 4/4] Update update-lint-and-build.yml --- .github/workflows/update-lint-and-build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-lint-and-build.yml b/.github/workflows/update-lint-and-build.yml index bfbae69f4..29efd7bcd 100644 --- a/.github/workflows/update-lint-and-build.yml +++ b/.github/workflows/update-lint-and-build.yml @@ -73,7 +73,8 @@ jobs: - uses: actions/checkout@master with: ref: ${{ matrix.version }} - - run: sphinx-lint --color + - uses: rffontenelle/sphinx-lint-problem-matcher@v1 + - run: sphinx-lint build-translation: runs-on: ubuntu-latest