From 36ea33a19c0db53b0aa1708b6dc57c5166db09bd Mon Sep 17 00:00:00 2001 From: Pierre Millot Date: Tue, 5 Jul 2022 12:20:23 +0200 Subject: [PATCH] fix(ci): only delete generated clients on release --- .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