Restore condition for enablement

This commit is contained in:
Michael B. Gale
2026-01-19 13:19:48 +00:00
parent 02b2c55c51
commit 644e2b9bd7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -90262,7 +90262,7 @@ async function initConfig(features, inputs) {
);
}
const config = await initActionState(inputs, userConfig);
if (await features.getValue("ignore_generated_files" /* IgnoreGeneratedFiles */) || isCCR()) {
if (await features.getValue("ignore_generated_files" /* IgnoreGeneratedFiles */) && isCCR()) {
try {
const generatedFiles = await getGeneratedFiles(inputs.sourceRoot);
config.computedConfig["paths-ignore"] ??= [];
+1 -1
View File
@@ -919,7 +919,7 @@ export async function initConfig(
// If we are in CCR or the corresponding FF is enabled, try to determine
// which files in the repository are marked as generated and add them to
// the `paths-ignore` configuration.
if ((await features.getValue(Feature.IgnoreGeneratedFiles)) || isCCR()) {
if ((await features.getValue(Feature.IgnoreGeneratedFiles)) && isCCR()) {
try {
const generatedFiles = await getGeneratedFiles(inputs.sourceRoot);
config.computedConfig["paths-ignore"] ??= [];