Skip to content

Commit

Permalink
Use getRequiredEnvParam()
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
  • Loading branch information
cklin and aeisenberg committed Mar 2, 2022
1 parent 3615d8a commit a6bd509
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/actions-util.ts
Expand Up @@ -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
Expand Down

0 comments on commit a6bd509

Please sign in to comment.