diff --git a/lib/arc-login.js b/lib/arc-login.js index fad5d424..26ba61c6 100644 --- a/lib/arc-login.js +++ b/lib/arc-login.js @@ -83,7 +83,7 @@ function getArcKubeconfig() { const kubeconfigPath = path.join(runnerTempDirectory, `kubeconfig_${Date.now()}`); let azPath = yield io.which("az", true); let out = fs.openSync('./out.log', 'a'); - let err = fs.openSync('./out.log', 'a'); + let err = fs.openSync('./err.log', 'a'); if (method == 'service-account') { let saToken = core.getInput('token'); if (!saToken) { diff --git a/src/arc-login.ts b/src/arc-login.ts index 6c1fca76..0613ad0c 100644 --- a/src/arc-login.ts +++ b/src/arc-login.ts @@ -79,7 +79,7 @@ export async function getArcKubeconfig(): Promise { const kubeconfigPath = path.join(runnerTempDirectory, `kubeconfig_${Date.now()}`); let azPath = await io.which("az", true); let out = fs.openSync('./out.log', 'a'); - let err = fs.openSync('./out.log', 'a'); + let err = fs.openSync('./err.log', 'a'); if (method == 'service-account'){ let saToken = core.getInput('token'); if(!saToken){