fix: error detecting initial commits (#1181)

Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
Tonye Jack
2023-05-26 10:48:32 -06:00
committed by GitHub
parent 88fb02bd31
commit 9ad1a5b96a
5 changed files with 39 additions and 29 deletions

View File

@@ -89,6 +89,12 @@ export async function run(): Promise<void> {
)
}
if (diffResult.initialCommit) {
core.info('This is the first commit for this repository; exiting...')
core.endGroup()
return
}
core.info(
`Retrieving changes between ${diffResult.previousSha} (${diffResult.targetBranch}) → ${diffResult.currentSha} (${diffResult.currentBranch})`
)