From 925e9c9e7f98a7df26a86f6d6818f5c32e982243 Mon Sep 17 00:00:00 2001 From: Pierre Millot Date: Tue, 5 Jul 2022 14:07:38 +0200 Subject: [PATCH] fix(ci): only delete generated clients on release (#788) --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 06517a82c0..55ef9129b9 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -213,7 +213,7 @@ jobs: type: js_utils - name: Remove generated clients - if: ${{ steps.cache.outputs.cache-hit != 'true' && matrix.client.language == 'javascript' }} + if: ${{ steps.cache.outputs.cache-hit != 'true' && matrix.client.language == 'javascript' && startsWith(env.head_ref, 'chore/prepare-release-') }} run: | cd ${{ matrix.client.path }}/packages ls | grep -v -E "(client-common|requester-*|algoliasearch)" | xargs rm -rf