mirror of
https://github.com/docker/metadata-action.git
synced 2026-11-16 14:55:01 +08:00
perf: overlap context and repo metadata fetches
Signed-off-by: Zhiwei Liang <zhiwei.liang@zliang.me>
This commit is contained in:
parent
703896b4f3
commit
1ddc39e4af
1 changed files with 4 additions and 2 deletions
|
|
@ -12,8 +12,10 @@ actionsToolkit.run(
|
|||
async () => {
|
||||
const inputs: Inputs = getInputs();
|
||||
const toolkit = new Toolkit({githubToken: inputs.githubToken});
|
||||
const context = await getContext(inputs.context, toolkit);
|
||||
const repo = await toolkit.github.repoData();
|
||||
const [context, repo] = await Promise.all([
|
||||
getContext(inputs.context, toolkit),
|
||||
toolkit.github.repoData()
|
||||
]);
|
||||
const setOutput = outputEnvEnabled() ? setOutputAndEnv : core.setOutput;
|
||||
|
||||
await core.group(`Context info`, async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue