<commit_before>#!/bin/bash

set -eou pipefail

source .expeditor/scripts/shared.sh

git clone https://x-access-token:"${GITHUB_TOKEN:-$(chef_ci_github_token)}"@github.com/habitat-sh/habitat.wiki.git

# Download the latest Hab manifest
aws s3 cp "s3://chef-automate-artifacts/${EXPEDITOR_TARGET_CHANNEL}/latest/habitat/manifest.json" manifest.json --profile chef-cd

build_version=$(jq -r -c ".version"  manifest.json)

pushd ./chef-server.wiki
  # Publish release notes to S3
  aws s3 cp Pending-Release-Notes.md "s3://chef-automate-artifacts/release-notes/${EXPEDITOR_PROJECT}/${build_version}.md" --acl public-read --content-type "text/plain" --profile chef-cd

  # Reset "Stable 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 $build_version"
  git push origin master
popd

# Cleanup
rm -rf chef-server.wiki
rm manifest.json<commit_msg>release notes were pulling from chef-server<commit_after>#!/bin/bash

set -eou pipefail

source .expeditor/scripts/shared.sh

git clone https://x-access-token:"${GITHUB_TOKEN:-$(chef_ci_github_token)}"@github.com/habitat-sh/habitat.wiki.git

# Download the latest Hab manifest
aws s3 cp "s3://chef-automate-artifacts/${EXPEDITOR_TARGET_CHANNEL}/latest/habitat/manifest.json" manifest.json --profile chef-cd

build_version=$(jq -r -c ".version"  manifest.json)

pushd ./habitat.wiki
  # Publish release notes to S3
  aws s3 cp Pending-Release-Notes.md "s3://chef-automate-artifacts/release-notes/${EXPEDITOR_PROJECT}/${build_version}.md" --acl public-read --content-type "text/plain" --profile chef-cd

  # Reset "Stable 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 $build_version"
  git push origin master
popd

# Cleanup
rm -rf habitat.wiki
rm manifest.json
{'fraction_non_alphanumeric': 0.12975285171102663, 'fraction_numerical': 0.004752851711026616, 'mean_word_length': 4.096852300242131, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2649421', 'n_tokens_mistral': 738, 'n_tokens_neox': 713, 'n_words': 182}