Skip to content

Commit aad2712

Browse files
authored
chore: cleanup before pushing to docs (#3332)
1 parent 26aca84 commit aad2712

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/ci/codegen/pushToAlgoliaDoc.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ async function pushToAlgoliaDoc(): Promise<void> {
4444
await run(`git checkout -B ${targetBranch}`, { cwd: tempGitDir });
4545

4646
const pathToSpecs = toAbsolutePath(`${tempGitDir}/app_data/api/specs`);
47+
await run(`rm -rf ${pathToSpecs}/* || true`);
4748
await run(`cp ${toAbsolutePath('specs/bundled/*.doc.yml')} ${pathToSpecs}`);
4849
await run(`cp ${toAbsolutePath('config/release.config.json')} ${pathToSpecs}`);
4950
await run(`cp ${toAbsolutePath('website/src/generated/*.json')} ${pathToSpecs}`);

0 commit comments

Comments
 (0)