plugin-update-checker
plugin-update-checker copied to clipboard
How to keep this script up to date automatically?
What would be the best way to keep this script up to date automatically?
I'm trying now using it as a git submodule
Personally, I add it using an SVN externals definition. I think this is similar to Git submodules.
However, I'm not sure if I can recommend this approach to other people. The master
branch isn't guaranteed to be stable. As the primary maintainer, I usually have a pretty good idea of when it's OK to update the externals, but someone who doesn't closely follow the activity in this repository might not be able to do that safely.
Unfortunately, I don't know another way to completely automate updates. The closest alternative might be to use Composer and to regularly run composer update
.
I tried this as a git submodule, but unfortunately, if you use something like gitlab to host your plugin, when your plugin is updated in a WordPress instance, and the zip file is downloaded, it will not include all the files of the submodule.