Skip to content

Commit 842b8f1

Browse files
committed
fix: do not commit cache file
1 parent 48c452e commit 842b8f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

action/src/flows/in-branch.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@ export class InBranchFlow extends IntegrationFlow {
1616
await this.runLingoDotDev();
1717
this.ora.succeed("Done running Lingo.dev");
1818

19+
execSync(`rm -f i18n.cache`, { stdio: "inherit" }); // do not commit cache file if it exists
20+
1921
this.ora.start("Checking for changes");
2022
const hasChanges = this.checkCommitableChanges();
2123
this.ora.succeed(hasChanges ? "Changes detected" : "No changes detected");
2224

2325
if (hasChanges) {
2426
this.ora.start("Committing changes");
2527
execSync(`git add .`, { stdio: "inherit" });
28+
execSync(`git status --porcelain`, { stdio: "inherit" });
2629
execSync(`git commit -m "${this.platformKit.config.commitMessage}"`, {
2730
stdio: "inherit",
2831
});

0 commit comments

Comments
 (0)