[ci] Work around docosaurus errors (#206097)

## Summary
This workaround removes the folder that needs to be built differently
after cloning the repos.

See: https://github.com/elastic/kibana/issues/206077
This commit is contained in:
Alex Szabo 2025-01-09 23:33:30 +01:00 committed by GitHub
parent 668d88e19e
commit b3b81331b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,6 +34,14 @@ run(
sources.map(async (source): Promise<Source> => {
const repo = await repos.init(source.location);
// TODO: Remove this, once https://github.com/elastic/kibana/issues/206077 is resolved
if (source.location === 'elastic/kibana-team') {
log.info(
'Removing internal.kibana.dev from elastic/kibana-team - see https://github.com/elastic/kibana/issues/206077 for more details.'
);
await repo.run('rm', ['-rf', 'internal.kibana.dev'], { desc: 'rm internal.kibana.dev' });
}
return {
type: 'file',
location: repo.resolve(),