shlogg · Early preview
Jetthoughts Dev @jetthoughts

Automate Gemfile Dependencies Updates With CircleCI

Automate edge gems updates with CircleCI: create & switch to new branch, update gems, create PR & commit changes in a single script.

Resolving the auto-upgrade issue will allow having edge gems versions with little to no effort. How could you achieve this with CI (specifically CircleCI)?



  
  
  Automatic update idea

CircleCI provides scheduling jobs and workflows. So you need to configure it to run updating script, which also needs to be prepared. That’s all!

  
  
  Updating Script

What the script has to do, step by step:

Create and switch to the new branch with an informative title.


#!/usr/bin/env bash
current_date=`date +"%Y%m%d%H%M"`
new_branch_name="auto-upgrade-gemfile-dependencies-${current_date}"
git check...