Add pre: and post: action for cleaning up (#384)

* pre and post cleanup-cli

* exec azpath

* enable azure powershell part

* set user agent

* extract utils

* divide cleanup

* extract azpsconfig class

* fix test

* move runpsscript

* change to AzPSUtils

* fix typo
This commit is contained in:
Shiying Chen
2023-12-28 17:00:03 +08:00
committed by GitHub
parent 45c3280904
commit b5038826b1
11 changed files with 523 additions and 481 deletions

View File

@@ -17,9 +17,6 @@ export class AzureCliLogin {
async login() {
core.info(`Running Azure CLI Login.`);
this.azPath = await io.which("az", true);
if (!this.azPath) {
throw new Error("Azure CLI is not found in the runner.");
}
core.debug(`Azure CLI path: ${this.azPath}`);
let output: string = "";