Skip to content

Commit

Permalink
[fix][ci] Don't delete maven repository binaries unless all jobs have…
Browse files Browse the repository at this point in the history
… succeeded
  • Loading branch information
lhotari committed Jan 23, 2023
1 parent 9e698b6 commit f7e9b44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pulsar-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1350,7 +1350,7 @@ jobs:
uses: apache/pulsar-test-infra/gh-actions-artifact-client/dist@master

- name: Delete maven repository binaries from GitHub Actions Artifacts
if: ${{ needs.preconditions.outputs.docs_only != 'true' }}
if: ${{ needs.preconditions.outputs.docs_only != 'true' && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
run: |
gh-actions-artifact-client.js delete pulsar-maven-repository-binaries.tar.zst || true
gh-actions-artifact-client.js delete pulsar-server-distribution.tar.zst || true

0 comments on commit f7e9b44

Please sign in to comment.