Skip to content

Commit

Permalink
don't run checkClean during dry-runs
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Apr 4, 2020
1 parent 1121bca commit 34dbfe8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/core/src/auto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,9 @@ export default class Auto {
process.exit(0);
}

await this.checkClean();
if (!args.dryRun) {
await this.checkClean();
}

let { pr, build } = await this.getPrEnvInfo();
pr = options.pr ? String(options.pr) : pr;
Expand Down Expand Up @@ -1179,7 +1181,10 @@ export default class Auto {
process.exit(0);
}

await this.checkClean();
if (!args.dryRun) {
await this.checkClean();
}

await this.setGitUser();

const lastRelease = await this.git.getLatestRelease();
Expand Down

0 comments on commit 34dbfe8

Please sign in to comment.