Skip to content

Commit

Permalink
Merge pull request #20 from terrestris/glob-cwd
Browse files Browse the repository at this point in the history
Use cwd for glob command
  • Loading branch information
simonseyock authored Jun 5, 2023
2 parents e52121c + d6870d6 commit 3be8541
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/success.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ module.exports = async function success(pluginConfig, {
const snapshotCommitMessage = pluginConfig.snapshotCommitMessage || 'chore: setting next snapshot version [skip ci]';
const processAllModules = pluginConfig.processAllModules || false;

const filesToCommit = await glob('**/pom.xml', { ignore: 'node_modules/**' });
const filesToCommit = await glob('**/pom.xml', {
cwd,
ignore: 'node_modules/**'
});

if (updateSnapshotVersionOpt) {
const settingsPath = pluginConfig.settingsPath || '.m2/settings.xml';
Expand Down

0 comments on commit 3be8541

Please sign in to comment.