Skip to content

Commit

Permalink
Merge pull request #38 from emmanuelgautier/missing-extension
Browse files Browse the repository at this point in the history
fix: include file extension
emmanuelgautier authored Sep 21, 2024
2 parents 55ee4df + ef57997 commit 9cc1e9d
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion uploader.js
Original file line number Diff line number Diff line change
@@ -13,7 +13,9 @@ module.exports = function uploader(cloudName, apiKey, apiSecret, files) {
const cloudinaryUploader = file => {
core.info(`uploading ${file}`);

return cloudinary.uploader.upload(file, { public_id: path.basename(file) });
return cloudinary.uploader.upload(file, {
public_id: path.basename(file, path.extname(file)),
});
};

return Promise.all(files.map(cloudinaryUploader));

0 comments on commit 9cc1e9d

Please sign in to comment.