#!/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 <