Release Notification #140
Workflow file for this run
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
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 }}"}}' |