From 551d1ca39e6d716fcb69424a164c929a1812b9c8 Mon Sep 17 00:00:00 2001 From: dhruv Date: Thu, 22 Aug 2024 16:59:17 +0530 Subject: [PATCH] made required changes Signed-off-by: dhruv --- .github/workflows/build.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a0d2772c1..e75d7261e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -97,19 +97,22 @@ jobs: -PisMainOrRelease=${{ inputs.isMainOrRelease }} 2>&1 | tee build.log - name: Upload Gradle Build Log - if: always() + if: failure() uses: actions/upload-artifact@v4 with: name: gradle-build-log path: build.log + retention-days: 7 - name: Upload Jacoco Report - if: always() + if: failure() uses: actions/upload-artifact@v4 with: name: jacoco-report - path: ${{github.workspace}}/galasa-managers-parent/build/reports/jacoco/jacocoMerge - + path: ${{github.workspace}}/galasa-managers-parent/**/**/build/reports/**/*.html + retention-days: 7 + if-no-files-found: ignore + - name: Login to Github Container Registry uses: docker/login-action@v3 with: