2019-07-17 21:30:58 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -eou pipefail
|
|
|
|
|
2019-09-30 22:37:50 +00:00
|
|
|
git clone https://x-access-token:${GITHUB_TOKEN}@github.com/inspec/inspec.wiki.git
|
2019-07-17 21:30:58 +00:00
|
|
|
|
|
|
|
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
|