Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move release dates JSON file to assets dir #817

Merged
merged 2 commits into from
Jan 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .expeditor/publish-release-notes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set -eou pipefail
PRODUCT=inspec-aws
CURRENTDATE=$(date +"%Y-%m-%d")
DOCS_DIR="docs-chef-io/static/release-notes/inspec-aws"
DOCS_ASSETS_DIR="docs-chef-io/assets/release-notes/inspec-aws"
BRANCH="expeditor/update_release_notes_${CURRENTDATE}"

git checkout -b "$BRANCH"
Expand All @@ -19,6 +20,11 @@ DATES_FILE="${DOCS_DIR}/release-dates.json"
DATES=$( cat "$DATES_FILE" | jq --arg DATE "$CURRENTDATE" '. |= .+ [$DATE]' )
echo $DATES | jq . > "$DATES_FILE"

# Append the date to the array of dates in docs-chef-io/assets/release-notes/inspec-aws/release-dates.json
DATES_FILE="${DOCS_ASSETS_DIR}/release-dates.json"
DATES=$( cat "$DATES_FILE" | jq --arg DATE "$CURRENTDATE" '. |= .+ [$DATE]' )
echo $DATES | jq . > "$DATES_FILE"

pushd ./inspec-aws.wiki
# Publish release notes to S3
aws s3 cp Pending-Release-Notes.md "s3://chef-automate-artifacts/release-notes/${PRODUCT}/${CURRENTDATE}.md" --acl public-read --content-type "text/plain" --profile chef-cd
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
"2021-10-01",
"2021-10-13",
"2021-11-08",
"2021-11-30"
]