Skip to content

Commit 1f00da1

Browse files
reid-spencerclaude
andcommitted
Add blog post dispatch to release workflow
Notify ossum.ai to auto-publish a blog post from release notes when a new RIDDL release is created, using the same repository dispatch pattern as the homebrew-tap notification. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 58f5136 commit 1f00da1

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,22 @@ jobs:
184184
"sha_linux_x86": "${{ steps.hashes.outputs.linux_x86 }}",
185185
"sha_jvm": "${{ steps.hashes.outputs.jvm }}"
186186
}
187+
188+
# Notify ossum.ai to create a blog post from release notes
189+
notify-blog:
190+
needs: [native-build, jvm-build]
191+
timeout-minutes: 10
192+
runs-on: ubuntu-latest
193+
steps:
194+
- name: Dispatch blog post creation
195+
uses: peter-evans/repository-dispatch@v3
196+
with:
197+
token: ${{ secrets.HOMEBREW_TAP_SECRET }}
198+
repository: ossuminc/ossum.ai
199+
event-type: riddl-release
200+
client-payload: >-
201+
{
202+
"product": "riddl",
203+
"version": "${{ github.event.release.tag_name || github.event.inputs.tag }}",
204+
"release_url": "https://github.com/ossuminc/riddl/releases/tag/${{ github.event.release.tag_name || github.event.inputs.tag }}"
205+
}

0 commit comments

Comments
 (0)