write_extra_pkgs_to_actions function

Write extra packages to actions