fix: fixes tsc build

This commit is contained in:
Simone Corsi
2022-05-11 09:49:34 +02:00
parent 55cd9e9c58
commit ec10b79a91
5 changed files with 17185 additions and 10420 deletions

View File

@@ -1,12 +1,10 @@
import fs from 'fs';
import ejs from 'ejs';
import * as core from '@actions/core';
import remark from 'remark';
import { remark } from 'remark';
import toc from 'remark-toc';
import git from './git';
import type { PaginationLink, ApiGetStarResponse, Stars, Star } from './types';
export const REPO_USERNAME = process.env.GITHUB_REPOSITORY?.split('/')[0];
export const API_STARRED_URL = `${process.env.GITHUB_API_URL}/users/${REPO_USERNAME}/starred`;

View File

@@ -17,12 +17,11 @@ export async function main() {
// get template if found in the repo
const customTemplatePath = core.getInput('template-path');
console.log(`check if customTemplatePath: ${customTemplatePath} exists`);
core.info(`check if customTemplatePath: ${customTemplatePath} exists`);
try {
const dir = await readdir('./');
template = await readFile(customTemplatePath, 'utf8');
} catch {
console.log("Couldn't find template file, using default");
core.info("Couldn't find template file, using default");
}
const sortedByLanguages = await ghStarFetch({