Skip to content

Commit 5260ae1

Browse files
committed
Changes in loginAzurePowerShell.ts
1 parent 739c338 commit 5260ae1

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

lib/loginAzurePowerShell.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ function setPSModulePath() {
2828
// TODO: get latest module/setup action
2929
let azPSVersion = "2.6.0";
3030
let modulePath = "";
31-
const runner = JSON.parse(process.env.RUNNER_CONTEXT);
32-
switch (runner.os) {
31+
switch (process.env.RUNNER_OS) {
3332
case "Linux":
3433
modulePath = `/usr/share/az_${azPSVersion}:`;
3534
break;

src/loginAzurePowerShell.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ function setPSModulePath() {
1313
// TODO: get latest module/setup action
1414
let azPSVersion: string = "2.6.0";
1515
let modulePath: string = "";
16-
const runner = JSON.parse(process.env.RUNNER_CONTEXT);
17-
switch (runner.os) {
16+
switch (process.env.RUNNER_OS) {
1817
case "Linux":
1918
modulePath = `/usr/share/az_${azPSVersion}:`;
2019
break;

0 commit comments

Comments
 (0)