String replacement from `@github/actions-` to `@actions/`
13 lines
441 B
TypeScript
13 lines
441 B
TypeScript
import {ActionOutputs, ActionReference} from "@actions/languageservice/action";
|
|
import {Octokit} from "@octokit/rest";
|
|
import {fetchActionMetadata} from "../utils/action-metadata";
|
|
import {TTLCache} from "../utils/cache";
|
|
|
|
export async function getActionOutputs(
|
|
octokit: Octokit,
|
|
cache: TTLCache,
|
|
action: ActionReference
|
|
): Promise<ActionOutputs | undefined> {
|
|
return (await fetchActionMetadata(octokit, cache, action))?.outputs;
|
|
}
|