Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Remove translation docs from percy workflow (#7193)
Browse files Browse the repository at this point in the history
* Remove translation docs from percy workflow

* fix path
  • Loading branch information
devnook committed Jan 18, 2022
1 parent ccfe9e7 commit 99bbfb5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tools/eleventyignore/index.js
Expand Up @@ -62,6 +62,16 @@ const contentDirs = getDirectories(contentPath)
const isProduction = process.env.NODE_ENV === 'production';
// This will automatically be set to true by GitHub Actions.
const isCI = process.env.CI;
const isPercy = process.env.PERCY;
const enDirPath = path.join('src', 'site', 'content');
const translationDirs = getDirectories(enDirPath)
.filter((dir) => dir !== 'en')
.map((dir) => path.join(enDirPath, dir));

if (isPercy) {
console.log(warning(`Ignoring ALL translation docs in Percy mode`));
ignores.push(...translationDirs);
}

// Only use ignore environment variables during dev and CI builds.
if (!isProduction || isCI) {
Expand Down

0 comments on commit 99bbfb5

Please sign in to comment.