Skip to content

Commit

Permalink
Merge pull request #597 from gounthar/fix-clean-phase
Browse files Browse the repository at this point in the history
fix(pr): Fix clean phase before committing changes
  • Loading branch information
jonesbusy authored Jan 8, 2025
2 parents fb4388e + e6222a8 commit a5c2da3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,11 @@ private void process(Plugin plugin) {
plugin.getName(),
plugin.getMetadata().toJson());

// Clean target folder before committing changes
if (!config.isDryRun()) {
plugin.clean(mavenInvoker);
}

plugin.commit(ghService);
plugin.push(ghService);
plugin.openPullRequest(ghService);
Expand Down

0 comments on commit a5c2da3

Please sign in to comment.