From 2222206e3841c6d52c0b36dcc62a66004ccadc85 Mon Sep 17 00:00:00 2001 From: Peter Evans <18365890+peter-evans@users.noreply.github.com> Date: Mon, 13 Dec 2021 17:05:49 +0900 Subject: [PATCH] fix missing await --- dist/index.js | 4 ++-- src/create-or-update-branch.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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