diff --git a/dist/index.js b/dist/index.js index f911c9c..f45ad85 100644 --- a/dist/index.js +++ b/dist/index.js @@ -133,8 +133,8 @@ function createOrUpdateBranch(git, commitMessage, base, branch, branchRemoteName } yield git.commit(params); // Remove uncommitted tracked and untracked changes - git.exec(['reset', '--hard']); - git.exec(['clean', '-f']); + yield git.exec(['reset', '--hard']); + yield git.exec(['clean', '-f']); } // Perform fetch and reset the working base // Commits made during the workflow will be removed diff --git a/src/create-or-update-branch.ts b/src/create-or-update-branch.ts index 46265bc..5dafc0d 100644 --- a/src/create-or-update-branch.ts +++ b/src/create-or-update-branch.ts @@ -130,8 +130,8 @@ export async function createOrUpdateBranch( } await git.commit(params) // Remove uncommitted tracked and untracked changes - git.exec(['reset', '--hard']) - git.exec(['clean', '-f']) + await git.exec(['reset', '--hard']) + await git.exec(['clean', '-f']) } // Perform fetch and reset the working base