Pulls data from Github data repository to DIMES, triggered by a Github Webhook
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE.md
README.md
pull.sh
update.php

README.md

data-webhook

Pulls data from Github data repository to DIMES.

Requirements

  • A Github webhook that points to the web-accessible location of update.php
  • PHP
  • Properly configured Git repositories and users with access to those repositories.

Installation

Download or clone the repository and place in a web-accessible directory, then set up a Webhook from your Github repository.

Usage

Triggered by a Github Webhook that takes a query parameter specifying which repository to pull from, for example:

http://your-server.com/update-url?data

will cd into the directory for the data repository, then do a git pull

Contributing

Pull requests welcome!

Authors

Hillel Arnold

License

This code is released under the MIT License. See LICENSE.md for details.