mirror of
https://github.com/github/codeql-action.git
synced 2026-05-01 11:20:11 +00:00
Add missing newline at the end of action-versions.ts
This commit is contained in:
@@ -176,7 +176,7 @@ export const ACTION_VERSIONS = {
|
||||
"version": "v5"
|
||||
}
|
||||
};
|
||||
`.trim();
|
||||
`.trimStart();
|
||||
|
||||
fs.writeFileSync(actionVersionsTsPath, actionVersionsTsContent);
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ export function updateActionVersions(
|
||||
actionVersions: Record<string, ActionVersion>,
|
||||
): boolean {
|
||||
// Build content for the file.
|
||||
let newContent: string = `export const ACTION_VERSIONS = ${JSON.stringify(actionVersions, null, 2)};`;
|
||||
let newContent: string = `export const ACTION_VERSIONS = ${JSON.stringify(actionVersions, null, 2)};\n`;
|
||||
|
||||
if (fs.existsSync(actionVersionsTsPath)) {
|
||||
const content = fs.readFileSync(actionVersionsTsPath, "utf8");
|
||||
|
||||
Reference in New Issue
Block a user