From b4e29c9a34cad195c0ca3d622ea7c971e9c17539 Mon Sep 17 00:00:00 2001 From: JBBianchi Date: Wed, 29 Nov 2023 17:58:03 +0100 Subject: [PATCH] fix(cicd): cleanup always --- .github/workflows/js-package-pipeline.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/js-package-pipeline.yml b/.github/workflows/js-package-pipeline.yml index 54b64da..3236538 100644 --- a/.github/workflows/js-package-pipeline.yml +++ b/.github/workflows/js-package-pipeline.yml @@ -92,22 +92,13 @@ jobs: name: ${{ fromJSON(needs.config.outputs.package-config).name }} path: ${{ fromJSON(needs.config.outputs.package-config).path }} - cleanup-after-build: - if: (github.event_name != 'push' || github.ref_name != 'main') && github.event_name !='workflow_dispatch' + cleanup: + if: ${{ always() }} needs: - config - build - # - test - # - lint - uses: ./.github/workflows/js-cleanup-cache.yml - with: - name: ${{ fromJSON(needs.config.outputs.package-config).name }} - path: ${{ fromJSON(needs.config.outputs.package-config).path }} - - cleanup-after-publish: - if: (github.event_name == 'push' && github.ref_name == 'main') || github.event_name =='workflow_dispatch' - needs: - - config + # - test + # - lint - publish uses: ./.github/workflows/js-cleanup-cache.yml with: