Use Expeditor's built in Bash helper to post release announcement

Signed-off-by: Seth Chisamore <schisamo@chef.io>
This commit is contained in:
Seth Chisamore 2020-04-08 13:43:46 -04:00
parent ab131eff65
commit f1aa8917fe
No known key found for this signature in database
GPG key ID: 2B804E05C47D43AF

View file

@ -17,15 +17,8 @@ You can download binaries directly from [downloads.chef.io](https://downloads.ch
EOH
)
# category 9 is "Chef Release Announcements": https://discourse.chef.io/c/chef-release
curl -X POST https://discourse.chef.io/posts \
-H "Content-Type: multipart/form-data" \
-F "api_username=chef-ci" \
-F "api_key=$DISCOURSE_API_TOKEN" \
-F "category=9" \
-F "title=$topic_title" \
-F "raw=$topic_body"
# Use Expeditor's built in Bash helper to post our message: https://git.io/JvxPm
post_discourse_release_announcement "$topic_title" "$topic_body"
# Cleanup
rm release-notes.md