From 76d0173dd8327a1f86ab225c5076d81dafceaa78 Mon Sep 17 00:00:00 2001 From: Simone Corsi Date: Sat, 16 Jan 2021 10:53:14 +0100 Subject: [PATCH] fix: bad quotes in url --- src/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 922a74d..70ed314 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,8 +22,7 @@ import type { const REPO_USERNAME = process.env.GITHUB_REPOSITORY?.split('/')[0]; const OUTPUT_FILENAME: string = core.getInput('output-filename') || 'README.md'; -const USERNAME = process.env.GITHUB_ACTOR || 'simonecorsi'; -const API_STARRED_URL = `'https://api.github.com/users/${REPO_USERNAME}/starred'`; +const API_STARRED_URL = `https://api.github.com/users/${REPO_USERNAME}/starred`; const renderer = async (data: any) => { try { @@ -99,7 +98,7 @@ export async function main(): Promise { ); const rendered = await renderer({ - username: USERNAME, + username: REPO_USERNAME, stars: Object.entries(sortedByLanguages), updatedAt: Date.now(), });