ref(app/action): move action.yml bash script to run.sh

This commit is contained in:
lowlighter
2022-04-24 13:23:31 -04:00
parent cc43ccfb4a
commit d1e1737f28
3 changed files with 92 additions and 91 deletions

View File

@@ -77,7 +77,7 @@ for (const id of Object.keys(templates)) {
for (const step of ["config", "documentation"]) {
switch (step) {
case "config":
await update({source: paths.join(__action, "action.yml"), output: "action.yml"})
await update({source: paths.join(__action, "action.yml"), output: "action.yml", context: {runsh: `${await fs.readFile(paths.join(__action, "run.sh"), "utf8")}`}})
await update({source: paths.join(__web, "settings.example.json"), output: "settings.example.json"})
break
case "documentation":