Skip to content

Commit 10534c7

Browse files
committed
fix(action): error message
1 parent 1ef8a83 commit 10534c7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

action/src/flows/in-branch.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ export class InBranchFlow extends IntegrationFlow {
7575
const currentAuthor = `${gitConfig.userName} <${gitConfig.userEmail}>`;
7676
const authorOfLastCommit = execSync(`git log -1 --pretty=format:'%an <%ae>'`).toString();
7777
if (authorOfLastCommit === currentAuthor) {
78-
this.ora.fail(`The action will not run on commits by ${currentAuthor}`);
78+
this.ora.warn(`The action will not run on commits by ${currentAuthor}`);
79+
this.ora.warn(
80+
`The last commit was already made by this action. Running this action again will not change anything.`,
81+
);
7982
return false;
8083
}
8184

0 commit comments

Comments
 (0)