summaryrefslogtreecommitdiff
path: root/.expeditor/update_version.sh
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-12-03 16:09:36 -0800
committerTim Smith <tsmith@chef.io>2018-12-03 16:11:18 -0800
commitad672468f51bc8b5c31948ed64b9d2ff04712b18 (patch)
tree0c1b1a703bea90354418c0fb3ead984456ad98fb /.expeditor/update_version.sh
parent8be2723cc4ca519adc4fbbea5e2f2ff4652cdab2 (diff)
downloadwmi-lite-ad672468f51bc8b5c31948ed64b9d2ff04712b18.tar.gz
Wire up expeditor
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to '.expeditor/update_version.sh')
-rw-r--r--.expeditor/update_version.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/.expeditor/update_version.sh b/.expeditor/update_version.sh
new file mode 100644
index 0000000..38723c2
--- /dev/null
+++ b/.expeditor/update_version.sh
@@ -0,0 +1,12 @@
+#!/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
+
+sed -i -r "s/^(\s*)VERSION = \".+\"/\1VERSION = \"$(cat VERSION)\"/" lib/wmi-lite/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.