From 56bcf57b6d7c6f8ae2831ef2793d4b40ab85a32a Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Wed, 8 May 2019 13:21:24 -0700 Subject: Switch expeditor gem updating to use bundle lock This should still get us an update without removing the lockfile first which resulted in the new file being written out as a Bundler 2.x file. Signed-off-by: Tim Smith --- .expeditor/config.yml | 6 +++--- .expeditor/update_dep.sh | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to '.expeditor') diff --git a/.expeditor/config.yml b/.expeditor/config.yml index 55a74e04f2..6dfd00400e 100644 --- a/.expeditor/config.yml +++ b/.expeditor/config.yml @@ -143,6 +143,6 @@ subscriptions: - workload: ruby_gem_published:cheffish-* actions: - bash:.expeditor/update_dep.sh -# - workload: ruby_gem_published:license-acceptance-* -# actions: -# - bash:.expeditor/update_dep.sh + - workload: ruby_gem_published:license-acceptance-* + actions: + - bash:.expeditor/update_dep.sh diff --git a/.expeditor/update_dep.sh b/.expeditor/update_dep.sh index 1041f7504a..baf950c408 100644 --- a/.expeditor/update_dep.sh +++ b/.expeditor/update_dep.sh @@ -18,11 +18,9 @@ function new_gem_included() { branch="expeditor/${EXPEDITOR_GEM_NAME}_${EXPEDITOR_VERSION}" git checkout -b "$branch" -bundle install - tries=12 for (( i=1; i<=$tries; i+=1 )); do - bundle exec rake dependencies:update_gemfile_lock + bundle lock --update new_gem_included && break || sleep 20 if [ $i -eq $tries ]; then echo "Searching for '${EXPEDITOR_GEM_NAME} (${EXPEDITOR_VERSION})' ${i} times and did not find it" -- cgit v1.2.1