Skip to content

Release Notification #140

Release Notification

Release Notification #140

name: Release Notification
on:
release:
types: [published]
workflow_dispatch: # This allows manual triggering
jobs:
release-notification:
runs-on: ubuntu-latest
steps:
- name: Fetch latest release tag
run: |
latest_release=$(curl -s https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r .tag_name)
echo "LATEST_RELEASE_TAG=$latest_release" >> $GITHUB_ENV
- name: Send dispatch event to bot_playground repository
env:
PAT: ${{ secrets.TOKEN_SR }}
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token $PAT" \
https://api.github.com/repos/clEsperanto/pyclesperanto/dispatches \
-d '{"event_type":"clic_update", "client_payload": {"release_tag": "${{ env.LATEST_RELEASE_TAG }}"}}'
- name: Send dispatch event to bot_playground repository
env:
PAT: ${{ secrets.TOKEN_SR }}
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token $PAT" \
https://api.github.com/repos/clEsperanto/clesperantoj_prototype/dispatches \
-d '{"event_type":"clic_update", "client_payload": {"release_tag": "${{ env.LATEST_RELEASE_TAG }}"}}'