From 617068376e8129db751b930a160d0e6664e996a7 Mon Sep 17 00:00:00 2001 From: Ludovic DEHON Date: Wed, 12 Jun 2024 00:02:11 +0200 Subject: [PATCH] fix(cicd): don't run jacoco publish on failed --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d75e5f2..89d80c9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -87,11 +87,11 @@ jobs: # Jacoco - name: 'Set up Cloud SDK' - if: ${{ always() && env.GOOGLE_SERVICE_ACCOUNT != 0 }} + if: ${{ env.GOOGLE_SERVICE_ACCOUNT != 0 }} uses: 'google-github-actions/setup-gcloud@v2' - name: 'Copy jacoco files' - if: ${{ always() && env.GOOGLE_SERVICE_ACCOUNT != 0 }} + if: ${{ env.GOOGLE_SERVICE_ACCOUNT != 0 }} run: | gsutil -m rsync -d -r build/reports/jacoco/test/ gs://internal-kestra-host/${{ format('{0}/{1}/{2}', github.repository, env.GITHUB_HEAD_REF_SLUG != '' && env.GITHUB_HEAD_REF_SLUG || github.ref_name, 'jacoco') }}