Trump put trade pressure on both countries which eventually led to a ceasefire in late July, ending five days of clashes.