Skip to content

Commit 35789b4

Browse files
committed
adding logs
1 parent bae1e96 commit 35789b4

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

lib/DeploymentProvider/Providers/WebAppDeploymentProvider.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,14 @@ class WebAppDeploymentProvider extends BaseWebAppDeploymentProvider_1.BaseWebApp
121121
}
122122
deleteReleaseZipForLinuxPhpApps(webPackage) {
123123
return __awaiter(this, void 0, void 0, function* () {
124-
const releaseZipPath = path_1.default.join(webPackage, 'release.zip');
125124
// Ignore if the app is not a Linux app or if release.zip does not exist
126-
if (!this.actionParams.isLinux || !fs_1.default.existsSync(releaseZipPath)) {
127-
core.info(`release.zip does not exist or not a Linux app, skipping deletion: ${releaseZipPath}`);
125+
if (!this.actionParams.isLinux) {
126+
core.info(`It's not a Linux app, skipping deletion of release.zip`);
127+
return;
128+
}
129+
const releaseZipPath = path_1.default.join(webPackage, 'release.zip');
130+
if (!fs_1.default.existsSync(releaseZipPath)) {
131+
core.info(`release.zip does not exist, skipping deletion: ${releaseZipPath}`);
128132
return;
129133
}
130134
let isPhpApp = yield this.checkIfTheAppIsPhpApp(webPackage);

src/DeploymentProvider/Providers/WebAppDeploymentProvider.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,17 @@ export class WebAppDeploymentProvider extends BaseWebAppDeploymentProvider {
8787
}
8888

8989
private async deleteReleaseZipForLinuxPhpApps(webPackage: string): Promise<void> {
90-
const releaseZipPath = path.join(webPackage, 'release.zip');
9190

9291
// Ignore if the app is not a Linux app or if release.zip does not exist
93-
if (!this.actionParams.isLinux || !fs.existsSync(releaseZipPath)) {
94-
core.info(`release.zip does not exist or not a Linux app, skipping deletion: ${releaseZipPath}`);
92+
if (!this.actionParams.isLinux) {
93+
core.info(`It's not a Linux app, skipping deletion of release.zip`);
94+
return;
95+
}
96+
97+
const releaseZipPath = path.join(webPackage, 'release.zip');
98+
99+
if (!fs.existsSync(releaseZipPath)) {
100+
core.info(`release.zip does not exist, skipping deletion: ${releaseZipPath}`);
95101
return;
96102
}
97103

0 commit comments

Comments
 (0)