This commit is contained in:
Zhiwei Liang 2026-09-15 12:07:28 +02:00 • committed by GitHub
commit 4f90575a74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,8 +12,10 @@ actionsToolkit.run(
async () => { async () => {
const inputs: Inputs = getInputs(); const inputs: Inputs = getInputs();
const toolkit = new Toolkit({githubToken: inputs.githubToken}); const toolkit = new Toolkit({githubToken: inputs.githubToken});
const context = await getContext(inputs.context, toolkit); const [context, repo] = await Promise.all([
const repo = await toolkit.github.repoData(); getContext(inputs.context, toolkit),
toolkit.github.repoData()
]);
const setOutput = outputEnvEnabled() ? setOutputAndEnv : core.setOutput; const setOutput = outputEnvEnabled() ? setOutputAndEnv : core.setOutput;
await core.group(`Context info`, async () => { await core.group(`Context info`, async () => {