-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dispatches version release notes to technical documents (changelog.md)
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Dispatches version release notes to technical documents (changelog.md) | ||
|
||
name: Dispatch on Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
dispatch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install jq | ||
run: sudo apt-get install jq | ||
|
||
- name: Send repository_dispatch event | ||
run: | | ||
body=$(echo "${{ github.event.release.body }}" | jq -R -s -r '@json') | ||
curl -X POST \ | ||
-H "Accept: application/vnd.github.everest-preview+json" \ | ||
-H "Authorization: token ${{ secrets.REPO_ACCESS_TOKEN }}" \ | ||
--data "{\"event_type\": \"new-release\", \"client_payload\": {\"tag_name\": \"${{ github.event.release.tag_name }}\", \"html_url\": \"${{ github.event.release.html_url }}\", \"body\": $body, \"published_at\": \"${{ github.event.release.published_at }}\", \"sender_login\": \"${{ github.event.sender.login }}\", \"release_url\": \"${{ github.event.release.url }}\"} }" \ | ||
"https://api.github.com/repos/GummersGG/test-things/dispatches" |
cbd04a7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
appologies
"https://api.github.com/repos/GummersGG/test-things/dispatches" should be changed to: ""https://api.github.com/repos/GenesysGo/docs-shadow-cloud/dispatches"