The init actions repo has had some problems accepting changes from multiple contributors at once because much of its codebase is duplicated in each action.
I propose that we re-factor the common code into templates and build the actions from templates instead.
Some options are:
Perl's Template::Toolkit
Template::Toolkit re-written in Python https://github.com/lmr/Template-Toolkit-Python
m4 macros as used by GNU automake / autoconf