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'); params.push('--signoff');
} }
yield git.commit(params); yield git.commit(params);
git.exec(['reset', '--hard']);
git.exec(['clean', '-f']);
} }
// Perform fetch and reset the working base // Perform fetch and reset the working base
// Commits made during the workflow will be removed // Commits made during the workflow will be removed

View file

@ -129,6 +129,8 @@ export async function createOrUpdateBranch(
params.push('--signoff') params.push('--signoff')
} }
await git.commit(params) await git.commit(params)
git.exec(['reset', '--hard'])
git.exec(['clean', '-f'])
} }
// Perform fetch and reset the working base // Perform fetch and reset the working base