diff --git a/dist/main/index.js b/dist/main/index.js index 70d55e7..3598104 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -6847,10 +6847,9 @@ function getDownloadURL() { } function ensureNscloudToken() { return __awaiter(this, void 0, void 0, function* () { - const tokenSpecFile = "/var/run/nsc/token.spec"; - if (fs__WEBPACK_IMPORTED_MODULE_3__.existsSync(tokenSpecFile)) { - const tokenSpec = fs__WEBPACK_IMPORTED_MODULE_3__.readFileSync(tokenSpecFile, "utf8"); - _actions_core__WEBPACK_IMPORTED_MODULE_0__.exportVariable("NSC_TOKEN_SPEC", tokenSpec); + const tokenFile = "/var/run/nsc/token.json"; + if (fs__WEBPACK_IMPORTED_MODULE_3__.existsSync(tokenFile)) { + _actions_core__WEBPACK_IMPORTED_MODULE_0__.exportVariable("NSC_TOKEN_FILE", tokenFile); return; } yield _actions_exec__WEBPACK_IMPORTED_MODULE_2__.exec("nsc auth exchange-github-token"); diff --git a/main.ts b/main.ts index aacd116..78ecc3e 100644 --- a/main.ts +++ b/main.ts @@ -72,10 +72,9 @@ function getDownloadURL(): string { } async function ensureNscloudToken() { - const tokenSpecFile = "/var/run/nsc/token.spec"; - if (fs.existsSync(tokenSpecFile)) { - const tokenSpec = fs.readFileSync(tokenSpecFile, "utf8"); - core.exportVariable("NSC_TOKEN_SPEC", tokenSpec); + const tokenFile = "/var/run/nsc/token.json"; + if (fs.existsSync(tokenFile)) { + core.exportVariable("NSC_TOKEN_FILE", tokenFile); return }