Skip to content

Commit

Permalink
fix: include file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelgautier committed Sep 21, 2024
1 parent 55ee4df commit ef57997
Show file tree
Hide file tree
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
Expand Up @@ -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));
Expand Down

0 comments on commit ef57997

Please sign in to comment.