Simple python tool that allows you to automatically pull from a github repository whenever a file with a specified name is uploaded
- clone the repo or download source as zip
- choose the options you want in config.ini
- clone the repository you want to pull from in the same directory as this program. ensure the directory name is the same as the repository’s name.
python main.py: it will automatically pull the latest commits on startup and then listen for commits with your specified update filename
there are 5 options in the config.ini file, filename and sleeptime are not very necessary to change, but they are there if you want to change them anyway.
put the repository name here, it will use it to pull from the repository and also to know what your cloned directory is called.
put the repository’s owner’s name here.
generate an api token by going to
Settings > Developer settings > Personal access tokens and then clicking on
Generate new token configure it however you’d like and then paste it into the config file.
put the name of the file you want to trigger the update function here. file extensions also work
put the amount of time (in seconds) that you want the program to wait inbetween checks here.
open an issue and i’ll get back to you! feel free to leave feature requests, bug reports, or any other thing you need to let me know about.