Use getRequiredEnvParam()

Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
This commit is contained in:
Chuan-kai Lin 2022-03-02 15:14:26 -08:00
parent 3615d8ac45
commit 870dbaaebe
3 changed files with 5 additions and 5 deletions

View file

@ -647,8 +647,8 @@ export async function createStatusReportBase(
workflowStartedAt
);
}
const runnerOs = process.env["RUNNER_OS"] || "";
const runnerArch = process.env["RUNNER_ARCH"] || "";
const runnerOs = getRequiredEnvParam("RUNNER_OS");
const runnerArch = getRequiredEnvParam("RUNNER_ARCH");
// If running locally then the GITHUB_ACTION_REF cannot be trusted as it may be for the previous action
// See https://github.com/actions/runner/issues/803