cleanup after success commit

This commit is contained in:
avdim 2021-12-08 18:31:26 +03:00
parent 2d4e9657d4
commit 0e80eb58d9
2 changed files with 4 additions and 0 deletions

2
dist/index.js vendored
View file

@ -132,6 +132,8 @@ function createOrUpdateBranch(git, commitMessage, base, branch, branchRemoteName
params.push('--signoff');
}
yield git.commit(params);
git.exec(['reset', '--hard']);
git.exec(['clean', '-f']);
}
// Perform fetch and reset the working base
// Commits made during the workflow will be removed