Skip to content

Commit

Permalink
logic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Snider committed Mar 26, 2022
1 parent 061fd85 commit 20d2afd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
5 changes: 1 addition & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4064,13 +4064,10 @@ async function run() {
core_1.info(`Deploying ${source}`);
await uploader_1.default(source, storageZoneName, accessKey);
}
else if (zoneId && zoneKey) {
if (zoneId && zoneKey) {
core_1.info(`Purging ${source}`);
await purge_1.default(zoneId, zoneKey);
}
else {
core_1.setFailed('Missing required inputs');
}
}
catch (error) {
core_1.setFailed(error);
Expand Down
7 changes: 3 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ async function run() {
info(`Deploying ${source}`);
await uploader(source, storageZoneName, accessKey);
}
else if(zoneId && zoneKey) {

if(zoneId && zoneKey) {
info(`Purging ${source}`);
await purge(zoneId, zoneKey);
}
else {
setFailed('Missing required inputs');
}


} catch (error) {
setFailed(error);
Expand Down

0 comments on commit 20d2afd

Please sign in to comment.