fix: fixes tsc build
This commit is contained in:
@@ -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`;
|
||||
|
||||
|
@@ -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({
|
||||
|
Reference in New Issue
Block a user