Skip to content

Commit 67d391b

Browse files
committed
fix(helm/generate-docs): lint generated files
Signed-off-by: Emilien Escalle <[email protected]>
1 parent 940e03e commit 67d391b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

actions/helm/generate-docs/action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,13 @@ runs:
8080
// Generate markdownlint config file if not exists
8181
const fs = require('node:fs');
8282
const path = require('node:path');
83-
let markdownlintConfigPath = path.join(workingDirectory, ".markdownlint-cli2.jsonc");
83+
84+
let markdownlintConfigPath = path.join(workingDirectory, ".markdownlint.json");
8485
if (!fs.existsSync(markdownlintConfigPath)) {
85-
markdownlintConfigPath = path.join(process.env.RUNNER_TEMP, `${Date.now()}.markdownlint-cli2.jsonc`);
86+
markdownlintConfigPath = path.join(process.env.RUNNER_TEMP, `${Date.now()}.markdownlint.json`);
8687
const defaultConfig = {
8788
"default": true,
88-
"line-length": { "max": 300 }
89+
"line-length": false
8990
};
9091
fs.writeFileSync(markdownlintConfigPath, JSON.stringify(defaultConfig, null, 2));
9192
}

0 commit comments

Comments
 (0)