diff --git a/.github/scripts/approve-rule.mjs b/.github/scripts/approve-rule.mjs index b68e744615c..3c74c4a2f75 100644 --- a/.github/scripts/approve-rule.mjs +++ b/.github/scripts/approve-rule.mjs @@ -27,10 +27,11 @@ await updateRuleVersionsYaml(config, argv.ruleId); await approveTestCaseJson(config, argv.ruleId); await commitAndPush(config, `Set ${argv.ruleId} to approved`); -async function generateApprovedRulePages({ tmpDir, rulesDir, glossaryDir }, ruleId) { +async function generateApprovedRulePages({ tmpDir, rulesDir, glossaryDir, testAssetsDir }, ruleId) { await $`node ./node_modules/act-tools/dist/cli/rule-transform.js \ --rulesDir "${rulesDir}" \ --glossaryDir "${glossaryDir}" \ + --testAssetsDir "${testAssetsDir}" \ --outDir "${tmpDir}" \ --ruleIds "${ruleId}" `; diff --git a/.github/scripts/wai-build.mjs b/.github/scripts/wai-build.mjs index c9cf1fdc444..b46770a6e5e 100644 --- a/.github/scripts/wai-build.mjs +++ b/.github/scripts/wai-build.mjs @@ -8,10 +8,11 @@ await generateTestCases(config); const commitMessage = (await $`git log -1 --pretty=%B`).stdout; await commitAndPush(config, commitMessage); -async function generateProposedRulePages({ tmpDir, rulesDir, glossaryDir }) { +async function generateProposedRulePages({ tmpDir, rulesDir, glossaryDir, testAssetsDir }) { await $`node ./node_modules/act-tools/dist/cli/rule-transform.js \ --rulesDir "${rulesDir}" \ --glossaryDir "${glossaryDir}" \ + --testAssetsDir "${testAssetsDir}" \ --outDir "${tmpDir}" \ --proposed `;