diff --git a/upload.js b/upload.js index 46e086d..372ca76 100644 --- a/upload.js +++ b/upload.js @@ -8,8 +8,13 @@ const core = require('@actions/core') async function upload( base64Content, - { Authorization, remotePath, username, repo, commitMessage = 'Upload' } + { Authorization, remotePath, username, repo, commitMessage } ) { + + if (!commitMessage) { + commitMessage = 'Upload' + } + const url = BASE_URL + path.posix.join(