Merge pull request #4975 from inspec/schisamo/use-discourse-helper-function

Use Expeditor's built in Bash helper to post release announcement
This commit is contained in:
Seth Chisamore 2020-04-10 13:22:26 -04:00 committed by GitHub
commit 3aed2eb54d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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