How update repo files created from template?

I’m have repository - template, I want auto update composer.json after create new repo from template.
Can I do it by Github Action or existed better solution?