Skip to content

Commit

Permalink
feat: added ref on manifest.json retrieval for workers
Browse files Browse the repository at this point in the history
gentlementlegen committed Aug 29, 2024
1 parent 51bf421 commit bd1f58f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/github/utils/plugins.ts
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ export function getManifest(context: GitHubContext, plugin: string | GithubPlugi
return isGithubPlugin(plugin) ? fetchActionManifest(context, plugin) : fetchWorkerManifest(plugin);
}

async function fetchActionManifest(context: GitHubContext<"issue_comment.created">, { owner, repo }: GithubPlugin): Promise<Manifest | null> {
async function fetchActionManifest(context: GitHubContext<"issue_comment.created">, { owner, repo, ref }: GithubPlugin): Promise<Manifest | null> {
const manifestKey = `${owner}:${repo}`;
if (_manifestCache[manifestKey]) {
return _manifestCache[manifestKey];
@@ -27,6 +27,7 @@ async function fetchActionManifest(context: GitHubContext<"issue_comment.created
owner,
repo,
path: "manifest.json",
ref,
});
if ("content" in data) {
const content = Buffer.from(data.content, "base64").toString();

0 comments on commit bd1f58f

Please sign in to comment.