make the lint workflow upload artifact run when fail

Signed-off-by: Jerens Lensun <jerensslensun@gmail.com>
This commit is contained in:
Jerens Lensun 2025-06-03 19:51:24 +08:00
parent 2fca8d9a46
commit 033651f263

View file

@ -51,10 +51,12 @@ jobs:
run: |
./mach clippy --message-format=json --use-crown --locked -- -- --deny warnings | ./etc/ci/clippy-annotation.sh > temp/clippy-output.json
- name: Save PR number
if: ${{ !cancelled() }}
run: |
mkdir -p ./pr
echo ${{ github.event.number }} > ./pr/number
- name: Clippy linter result
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4.6.1
with:
name: clippy-lint-result