Skip to content

Commit

Permalink
fix(cicd): don't run jacoco publish on failed
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Jun 11, 2024
1 parent 1f39972 commit b48ff0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,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') }}
Expand Down

0 comments on commit b48ff0b

Please sign in to comment.