Fix github build logic