Revert "Remove useless parts of yml script"

This reverts commit f03a915e63bdd6f2182cdf2a8e268871c761e6fd.