Skip to content

Commit

Permalink
Retry post error for filtering out files
Browse files Browse the repository at this point in the history
Signed-off-by: Kunal Kotwani <[email protected]>
  • Loading branch information
kotwanikunal committed Oct 28, 2022
1 parent 78b763d commit a2dbadb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/backport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,12 @@ const backportOnce = async ({
await git("switch", base);
await git("switch", "--create", head);
try {
await git("cherry-pick", "-x", "-n", commitSha);
try {
await git("cherry-pick", "-x", "-n", commitSha);
} catch (error) {
core.error("Possibly a conflict error. Trying to skip possible conflict files. ")
}

for (const file of filesToSkip) {
await git("checkout", "HEAD", file);
}
Expand Down

0 comments on commit a2dbadb

Please sign in to comment.