Skip to content

Commit

Permalink
fix: fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 authored Jan 25, 2024
1 parent ab9a20e commit 5251860
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const run = async () => {
let expireList: string[] = [];
const list = await pMap(
data,
async ({ manifest, path, tags, overrides = {} }) => {
async ({ manifest, path, tags, overrides, author, homepage = {} }) => {
consola.start(path);
const dirPath = resolve(pluginDir, path);
try {
Expand Down Expand Up @@ -90,8 +90,8 @@ const run = async () => {
consola.success(`Synced ${path}`);

return {
author: getAuthor(manifest),
homepage: getDomainFromUrl(manifest),
author: author || getAuthor(manifest),
homepage: homepage || getDomainFromUrl(manifest),
identifier: manifestJson.name_for_model,
manifest: urlJoin(BASE_URL, path, 'manifest.json'),
meta: {
Expand Down
6 changes: 6 additions & 0 deletions src/syncList.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
interface PluginItem {
author?: string;
homepage?: string;
manifest: string;
overrides?: {
manifest?: { [key: string]: any };
Expand Down Expand Up @@ -104,11 +106,15 @@ const PluginList: PluginItem[] = [
tags: ['nasa', 'search', 'image'],
},
{
author: 'steven-tey',
homepage: 'https://github.com/steven-tey/weathergpt',
manifest: 'https://weathergpt.vercel.app/.well-known/ai-plugin.json',
path: 'weather-gpt',
tags: ['weather'],
},
{
author: 'yunwei37',
homepage: 'https://github.com/yunwei37/ChatGPT-github-stat-plugin',
manifest: 'https://chat-gpt-github-stat-plugin.vercel.app/.well-known/ai-plugin.json',
path: 'github-stats',
tags: ['github', 'oss'],
Expand Down

0 comments on commit 5251860

Please sign in to comment.