fix missing await

This commit is contained in:
Peter Evans 2021-12-13 17:05:49 +09:00
parent be311b08ff
commit 2222206e38
2 changed files with 4 additions and 4 deletions

4
dist/index.js vendored
View file

@ -133,8 +133,8 @@ function createOrUpdateBranch(git, commitMessage, base, branch, branchRemoteName
} }
yield git.commit(params); yield git.commit(params);
// Remove uncommitted tracked and untracked changes // Remove uncommitted tracked and untracked changes
git.exec(['reset', '--hard']); yield git.exec(['reset', '--hard']);
git.exec(['clean', '-f']); yield 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

@ -130,8 +130,8 @@ export async function createOrUpdateBranch(
} }
await git.commit(params) await git.commit(params)
// Remove uncommitted tracked and untracked changes // Remove uncommitted tracked and untracked changes
git.exec(['reset', '--hard']) await git.exec(['reset', '--hard'])
git.exec(['clean', '-f']) await git.exec(['clean', '-f'])
} }
// Perform fetch and reset the working base // Perform fetch and reset the working base