Skip to content

Commit 36ea33a

Browse files
committed
fix(ci): only delete generated clients on release
1 parent 5a49984 commit 36ea33a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ jobs:
213213
type: js_utils
214214

215215
- name: Remove generated clients
216-
if: ${{ steps.cache.outputs.cache-hit != 'true' && matrix.client.language == 'javascript' }}
216+
if: ${{ steps.cache.outputs.cache-hit != 'true' && matrix.client.language == 'javascript' && startsWith(env.head_ref, 'chore/prepare-release-') }}
217217
run: |
218218
cd ${{ matrix.client.path }}/packages
219219
ls | grep -v -E "(client-common|requester-*|algoliasearch)" | xargs rm -rf

0 commit comments

Comments
 (0)