Fix misleading CI error when linting fails (#24200)

* Fix misleading CI error

* Intentionally make /tg/ui build fail

* Revert "Intentionally make /tg/ui build fail"

This reverts commit cb7bbe3e6d.

* Intentionally trigger dreamchecker

* Ignore exit code

* Fix error disappearing

* Revert "Intentionally trigger dreamchecker"

This reverts commit a2187b7ce9.

* Undo autoformat

---------

Co-authored-by: Arthri <41360489+a@users.noreply.github.com>
This commit is contained in:
Arthri
2024-02-17 21:34:34 +08:00
committed by GitHub
parent 28b79dc91c
commit b4dd74689e
+5 -2
View File
@@ -38,10 +38,13 @@ jobs:
python tools/ci/illegal_dme_files.py ${GITHUB_WORKSPACE}
python -m tools.ci.check_icon_conflicts
python -m tools.maplint.source --github
~/dreamchecker > ${GITHUB_WORKSPACE}/output-annotations.txt 2>&1
DREAMCHECKER_EXIT_CODE=0
~/dreamchecker > ${GITHUB_WORKSPACE}/output-annotations.txt 2>&1 || DREAMCHECKER_EXIT_CODE=$?
echo 'DREAMCHECKER_ANNOTATED=1' >> "$GITHUB_ENV"
exit $DREAMCHECKER_EXIT_CODE
- name: Annotate Lints
uses: yogstation13/DreamAnnotate@v2
if: always()
if: ${{ always() && env.DREAMCHECKER_ANNOTATED == '1' }}
with:
outputFile: output-annotations.txt