mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
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:
commit
3aed2eb54d
1 changed files with 2 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue