Kick GitHub periodically by creating branch with Heroku Scheduler. This also wakes web-hooks up!
- Create a branch which name with prefix periodically (e.g.
cron_for_github/__UUID__
) - Test periodically, it works!
- Do an additional task, watch building branch name!
# Run only sunday (heroku scheduler kicks everyday)
if [[ "${BRANCH_NAME}" =~ ^cron_for_github/.* && $(date +%w) -eq 0 ]]; then
# You want to do
fi
After deploy, you visit:
dashboard -> YOUR APP -> resources -> scheduler ->
bundle exec cron-for-github ping --slug=YOU/YOUR_REPO
It works!
If you want to clear cron branches before create branch, you can do below:
bundle exec cron-for-github clear --slug=YOU/YOUR_REPO && bundle exec cron-for-github ping --slug=YOU/YOUR_REPO
Set --verbose
option and watch metrics and logs with newrelic, logentries, etc., as your other app does.
bundle exec cron-for-github clear --slug=YOU/YOUR_REPO --verbose && bundle exec cron-for-github ping --slug=YOU/YOUR_REPO --verbose
We solve this! :) Build periodically travis-ci/travis-ci
Good service for Travis-CI. The Travis CI cron trigger requires form submitting, and only for Travis-CI.
Dependency Update as a Service. Tachikoma.io is only dependency update, so problem specific SaaS. If you NEVER want to maintenance your server (include Heroku), Tachikoma.io suits you.
We don't know how to achieve yet.
After checking out the repo, run bin/setup
to install dependencies. Then, run bin/console
for an interactive prompt that will allow you to experiment.
- Fork it ( https://github.com/packsaddle/ruby-cron_for_github-app/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request