Skip to content

Commit

Permalink
fix(ci): only delete generated clients on release (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp authored Jul 5, 2022
1 parent 5a49984 commit 925e9c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 925e9c9

Please sign in to comment.