ci: moves templates check

This commit is contained in:
Simone Corsi
2022-05-09 16:50:41 +02:00
parent 57651eab5a
commit ce053290e3

View File

@@ -12,11 +12,6 @@ import {
import MD_TEMPLATE from './template';
export async function main() {
const sortedByLanguages = await ghStarFetch({
accessToken: core.getInput('api-token', { required: true }),
compactByLanguage: true,
});
// set default template
let template = MD_TEMPLATE;
@@ -31,6 +26,11 @@ export async function main() {
core.warning("Couldn't find template file, using default");
}
const sortedByLanguages = await ghStarFetch({
accessToken: core.getInput('api-token', { required: true }),
compactByLanguage: true,
});
const rendered = await renderer(
{
username: REPO_USERNAME,