Skip to content

Commit

Permalink
Lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
Ap3rtur3 committed Jun 18, 2024
1 parent d866bda commit 60d1611
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/main/action/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export async function uploadArtifact(configuration: Configuration): Promise<any>
prefix: 'deployment/',
filter: (filePath) => path.basename(filePath) !== 'deployment.tar',
},
['.']
['.'],
);
if (configuration.configFile && fs.existsSync(configuration.configFile)) {
fs.copyFileSync(configuration.configFile, '.deploy-now/config.yaml');
Expand All @@ -57,7 +57,7 @@ export async function uploadArtifact(configuration: Configuration): Promise<any>
configuration.projectId,
configuration.branchId,
configuration.version,
new ArtifactUploadInput({ size: file.length })
new ArtifactUploadInput({ size: file.length }),
)
.catch((error) => {
throw new Error('Failed to initialize upload of deployment: ' + getErrorMessage(error));
Expand Down Expand Up @@ -99,16 +99,16 @@ export async function uploadArtifact(configuration: Configuration): Promise<any>
}
});
return result;
})
)
}),
),
);

const completedParts = resParts.map(
(part, index) =>
new CompletedPart({
number: index + 1,
eTag: (part as any).headers.etag,
})
}),
);

await client
Expand Down
2 changes: 1 addition & 1 deletion src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ Action.run<Configuration, any>(
folder: input.required('folder'),
action: input.required('action'),
configFile: input.optional('config-file'),
}
},
);
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"declaration": false,
"skipLibCheck": true,
"sourceMap": true,
"lib": ["es2020", "dom"]
},
"include": ["src"],
}
}

0 comments on commit 60d1611

Please sign in to comment.