build file changes even when there is no diff

This commit is contained in:
Peter Evans 2024-08-02 16:38:58 +00:00
parent 6c5dc224d1
commit 9cd16daf06
3 changed files with 11 additions and 6 deletions

5
dist/index.js vendored
View file

@ -290,9 +290,8 @@ function createOrUpdateBranch(git, commitMessage, base, branch, branchRemoteName
// Check if the pull request branch is ahead of the base
result.hasDiffWithBase = yield isAhead(git, base, branch);
}
if (result.hasDiffWithBase) {
result.branchFileChanges = yield buildBranchFileChanges(git, base, branch);
}
// Build the branch file changes
result.branchFileChanges = yield buildBranchFileChanges(git, base, branch);
// Get the pull request branch SHA
result.headSha = yield git.revParse('HEAD');
// Delete the temporary branch