fix: reworking files

This commit is contained in:
GitHub Actions
2022-05-11 13:09:38 +02:00
parent a141d23972
commit 19c4c8f761
5 changed files with 9550 additions and 201 deletions

View File

@@ -7,9 +7,9 @@ import {
renderer,
REPO_USERNAME,
generateMd,
pushNewFiles,
MARKDOWN_FILENAME,
} from './helpers';
import git from './git';
export async function main() {
// set default template
@@ -43,7 +43,7 @@ export async function main() {
const markdown: string = await generateMd(rendered);
await pushNewFiles([
await git.pushNewFiles([
{
filename: MARKDOWN_FILENAME,
data: markdown,
@@ -55,7 +55,7 @@ export async function main() {
]);
}
export async function run(): Promise<any> {
export async function run(): Promise<void> {
try {
await main();
} catch (error) {