chore: fix ts types

This commit is contained in:
GitHub Actions 2024-01-24 17:21:25 +01:00
parent d03b8a2e5a
commit 1a61946065
No known key found for this signature in database
GPG Key ID: 0F5535005610947A
4 changed files with 34548 additions and 27105 deletions

28857
index.js

File diff suppressed because one or more lines are too long

View File

@ -97,7 +97,7 @@ class Git {
createTag = (tag: string) => this.exec(`tag -a ${tag} -m "${tag}"`);
async pushNewFiles(files: File[] = []): Promise<any> {
async pushNewFiles(files: File[] = []): Promise<unknown> {
if (!files.length) return;
await this.pull();

View File

@ -7,7 +7,7 @@ export const REPO_USERNAME = process.env.GITHUB_REPOSITORY?.split('/')[0];
export const API_STARRED_URL = `${process.env.GITHUB_API_URL}/users/${REPO_USERNAME}/starred`;
export async function renderer(
data: { [key: string]: any },
data: { [key: string]: unknown },
templateString: string
): Promise<string> {
try {
@ -26,9 +26,9 @@ export function generateMd(data: string): Promise<string> {
if (error) {
core.error('#generateMd');
core.error(error);
return resolve('');
resolve('');
}
return resolve(String(file));
resolve(String(file));
});
});
}

View File

@ -87,7 +87,7 @@ export async function run(): Promise<void> {
}
}
const catchAll = (info: any) => {
const catchAll = (info: string) => {
core.setFailed(`#catchAll: ${info}`);
core.error(info);
};