Skip to content

Commit 4ab20ee

Browse files
Fix README gist workflow Node script
1 parent 711874e commit 4ab20ee

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/create-readme-gist.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ jobs:
8080
node <<'NODE'
8181
const fs = require("fs");
8282
83+
async function main() {
84+
8385
const apiVersion = "2022-11-28";
8486
const readToken = process.env.GITHUB_TOKEN || "";
8587
const gistToken = process.env.SERPGAMEDEVELOPER_GIST_TOKEN || "";
@@ -205,4 +207,10 @@ jobs:
205207
].join("\n")
206208
);
207209
}
210+
}
211+
212+
main().catch((error) => {
213+
console.error(error);
214+
process.exit(1);
215+
});
208216
NODE

0 commit comments

Comments
 (0)