[CI] refactor ci code