ci: console

This commit is contained in:
Simone Corsi
2022-05-09 17:09:32 +02:00
parent ce053290e3
commit f88cf3357e

View File

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