From 392dc779ffdea29f91873288af30917f9f62f3e2 Mon Sep 17 00:00:00 2001 From: Fergus Molloy Date: Tue, 22 Jul 2025 00:42:22 +0100 Subject: [PATCH] only upload artifacts on failure --- .gitea/workflows/backend.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/backend.yaml b/.gitea/workflows/backend.yaml index a2a3dff..a3413ed 100644 --- a/.gitea/workflows/backend.yaml +++ b/.gitea/workflows/backend.yaml @@ -62,7 +62,8 @@ jobs: - name: Run Tests run: ./scripts/test.sh - name: Upload Test Logs + if: ${{ failure() }} uses: actions/upload-artifact@v3 with: - name: nuchat-${{ hashFiles('src/**') }}-${{ hashFiles('tests/**') }}.log + name: nuchat-logs path: backend/logs/*