summaryrefslogtreecommitdiff
path: root/.expeditor/update_version.sh
diff options
context:
space:
mode:
authorJaymala Sinha <jsinha@chef.io>2019-10-03 11:57:43 -0400
committerJaymala Sinha <jsinha@chef.io>2019-10-03 12:36:48 -0400
commiteded69ff45df3f083444edb3a5c3cddc7db25eb3 (patch)
tree5590fad5bed834685d06c8af2e28dae3992d3730 /.expeditor/update_version.sh
parentdb10f274b2455b4bdd04fba6968ff18f8e8f3b41 (diff)
downloadffi-yajl-eded69ff45df3f083444edb3a5c3cddc7db25eb3.tar.gz
Enable expeditor and BK verification testsjsinha/add_expeditor
Enable publishing to rubygems Signed-off-by: Jaymala Sinha <jsinha@chef.io>
Diffstat (limited to '.expeditor/update_version.sh')
-rwxr-xr-x.expeditor/update_version.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/.expeditor/update_version.sh b/.expeditor/update_version.sh
new file mode 100755
index 0000000..c79a54b
--- /dev/null
+++ b/.expeditor/update_version.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# After a PR merge, Chef Expeditor will bump the PATCH version in the VERSION file.
+# It then executes this file to update any other files/components with that new version.
+#
+
+set -evx
+
+VERSION=$(cat VERSION)
+
+sed -i -r "s/^(\\s*)VERSION = \".+\"/\\1VERSION = \"$VERSION\"/" lib/mixlib/shellout/version.rb
+
+# Once Expeditor finshes executing this script, it will commit the changes and push
+# the commit as a new tag corresponding to the value in the VERSION file.