Skip to content

Commit 33fc868

Browse files
committed
Add header
1 parent 1358862 commit 33fc868

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/cli/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ program.command("build [workflows...]").action(async (args: string[]) => {
3535
fs.mkdirSync(githubWorkflowsPath, { recursive: true });
3636
fs.writeFileSync(
3737
path.join(githubWorkflowsPath, `${filenameWithoutExtension}.yml`),
38-
workflowYml,
38+
[
39+
"# DO NOT EDIT THIS FILE",
40+
"# This file is automatically generated by ghats (https://www.npmjs.com/package/ghats)",
41+
`# Edit the workflow in .github/workflows/${filenameWithoutExtension}.ts instead.`,
42+
workflowYml,
43+
].join("\n"),
3944
);
4045
}
4146
});

0 commit comments

Comments
 (0)