diff options
author | Tim Smith <tsmith@chef.io> | 2018-12-03 16:09:36 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-12-03 16:11:18 -0800 |
commit | ad672468f51bc8b5c31948ed64b9d2ff04712b18 (patch) | |
tree | 0c1b1a703bea90354418c0fb3ead984456ad98fb | |
parent | 8be2723cc4ca519adc4fbbea5e2f2ff4652cdab2 (diff) | |
download | wmi-lite-ad672468f51bc8b5c31948ed64b9d2ff04712b18.tar.gz |
Wire up expeditor
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | .expeditor/config.yml | 41 | ||||
-rw-r--r-- | .expeditor/update_version.sh | 12 | ||||
-rw-r--r-- | CHANGELOG.md | 10 | ||||
-rw-r--r-- | VERSION | 1 |
4 files changed, 61 insertions, 3 deletions
diff --git a/.expeditor/config.yml b/.expeditor/config.yml new file mode 100644 index 0000000..b7e09b0 --- /dev/null +++ b/.expeditor/config.yml @@ -0,0 +1,41 @@ +# Documentation available at https://expeditor.chef.io/docs/getting-started/ +--- +# Slack channel in Chef Software slack to send notifications about build failures, etc +slack: + notify_channel: chef-notify + +# This publish is triggered by the `built_in:publish_rubygems` artifact_action. +rubygems: + - wmi-lite + +github: + # This deletes the GitHub PR branch after successfully merged into the release branch + delete_branch_on_merge: true + # The tag format to use (e.g. v1.0.0) + version_tag_format: "v{{version}}" + # allow bumping the minor release via label + minor_bump_labels: + - "Expeditor: Bump Minor Version" + +changelog: + rollup_header: Changes not yet released to rubygems.org + +# These actions are taken, in order they are specified, anytime a Pull Request is merged. +merge_actions: + - built_in:bump_version: + ignore_labels: + - "Expeditor: Skip Version Bump" + - "Expeditor: Skip All" + - bash:.expeditor/update_version.sh: + only_if: built_in:bump_version + - built_in:update_changelog: + ignore_labels: + - "Expeditor: Exclude From Changelog" + - "Expeditor: Skip All" + - built_in:build_gem: + only_if: built_in:bump_version + +promote: + actions: + - built_in:rollover_changelog + - built_in:publish_rubygems 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. diff --git a/CHANGELOG.md b/CHANGELOG.md index 672042b..45b1471 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,11 @@ # WMI-Lite Change Log +<!-- latest_release --> +<!-- latest_release --> +<!-- release_rollup --> +<!-- release_rollup --> + +<!-- latest_stable_release --> ## [v1.0.0](https://github.com/chef/wmi-lite/tree/v1.0.0) (2014-05-15) - First public release - - - +<!-- latest_stable_release --> @@ -0,0 +1 @@ +1.0.0
\ No newline at end of file |