mirror of
https://github.com/inspec/inspec
synced 2024-11-23 21:23:29 +00:00
7be16359f2
This change updates InSpec begin using the streamlined release notes process we are already using on Automate and Chef Workstation. More details on this new process can be found on the following epic: https://github.com/chef/release-engineering/issues/692 Signed-off-by: Seth Chisamore <schisamo@chef.io>
30 lines
874 B
Bash
Executable file
30 lines
874 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eou pipefail
|
|
|
|
git clone https://github.com/inspec/inspec.wiki.git
|
|
|
|
pushd ./inspec.wiki
|
|
# Publish release notes to S3
|
|
aws s3 cp Pending-Release-Notes.md "s3://chef-automate-artifacts/release-notes/${EXPEDITOR_PRODUCT_KEY}/${EXPEDITOR_VERSION}.md" --acl public-read --content-type "text/plain" --profile chef-cd
|
|
aws s3 cp Pending-Release-Notes.md "s3://chef-automate-artifacts/${EXPEDITOR_CHANNEL}/latest/${EXPEDITOR_PRODUCT_KEY}/release-notes.md" --acl public-read --content-type "text/plain" --profile chef-cd
|
|
|
|
# Reset "Pending Release Notes" wiki page
|
|
cat >./Pending-Release-Notes.md <<EOH
|
|
## New Features
|
|
-
|
|
## Improvements
|
|
-
|
|
## Bug Fixes
|
|
-
|
|
## Backward Incompatibilities
|
|
-
|
|
EOH
|
|
|
|
# Push changes back up to GitHub
|
|
git add .
|
|
git commit -m "Release Notes for promoted build $EXPEDITOR_VERSION"
|
|
git push origin master
|
|
popd
|
|
|
|
rm -rf inspec.wiki
|