Last active
September 11, 2018 23:25
-
-
Save jcoyne/2235d80594a26ece95af23b82bff25cb to your computer and use it in GitHub Desktop.
A script to submit dependency update pull requests for infrastructure projects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd $TMPDIR | |
mkdir -p $TMPDIR/.autoupdate | |
cd $TMPDIR/.autoupdate | |
listOfProjects="argo | |
assembly | |
common-accessioning | |
dor-services-app | |
dor_indexing_app | |
dor-fetcher-service | |
editstore-updater | |
etd-robots | |
gis-robot-suite | |
goobi-robot | |
hydra_etd | |
hydrus | |
item-release | |
modsulator-app | |
modsulator-app-rails | |
pre-assembly | |
robot-master | |
sul-pub | |
sdr-services-app | |
was-registrar | |
was_robot_suite | |
was-thumbnail-service | |
workflow-archiver-job" | |
for i in $listOfProjects; do | |
echo $i | |
cd $TMPDIR/.autoupdate | |
git clone [email protected]:sul-dlss/$i | |
cd $i | |
git fetch origin | |
git checkout -B update-dependencies | |
git reset --hard origin/master | |
bundle update && | |
git add Gemfile.lock && | |
git commit -m "Update dependencies" && | |
git push origin update-dependencies && | |
hub pull-request -f -m "Update dependencies" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment