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 authored 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
Original file line number Diff line number Diff line change
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.