Skip to content

CCSCNE/update

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

update

Updates one or more clones using git pull whenever update.php is ran. Suitable for use with GitHub webhooks (and possibly others).

License

Requirements

  • PHP 5+
  • git 2+
  • GitHub repository (or any service that provides webhooks)

get started

$ git clone url-of-source one
$ git clone url-of-source two
$ cd two
$ git checkout devel

Clone the repository to a location under your websites document root.

$ cd /location/under/document/root
$ git clone https://github.com/CCSCNE/update.git

Copy sample_paths.php to paths.php and add paths to repositories to be updated.

$ cp update/sample\_paths.php update/paths.php
$ vim update/paths.php

In GitHub, add URL to update.php as a webhook on the source repository.

Now whenever you push to the source repository, the webhook will notify update.php, which will run git pull on each listed clone.

About

Updates a list of repositories when a request is made (indended for use with GitHub's webhooks).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages