| 1 |
name: Post message to Zulip |
| 2 |
|
| 3 |
on: |
| 4 |
workflow_dispatch: |
| 5 |
inputs: |
| 6 |
message: |
| 7 |
description: 'Message to post to Zulip' |
| 8 |
required: false |
| 9 |
default: 'Test Auto release notification of IPython from GitHub action' |
| 10 |
type: string |
| 11 |
|
| 12 |
jobs: |
| 13 |
post-message: |
| 14 |
name: Post Message to Zulip |
| 15 |
runs-on: ubuntu-latest |
| 16 |
|
| 17 |
steps: |
| 18 |
|
| 19 |
- name: Send Zulip notification |
| 20 |
uses: zulip/github-actions-zulip/send-message@v1 |
| 21 |
with: |
| 22 |
api-key: ${{ secrets.ORG_ZULIP_API_KEY }} |
| 23 |
email: ${{ secrets.ORG_ZULIP_EMAIL }} |
| 24 |
organization-url: ${{ secrets.ORG_ZULIP_ORGANIZATION_URL }} |
| 25 |
to: 'Releases' |
| 26 |
type: 'stream' |
| 27 |
topic: 'IPython' |
| 28 |
content: | |
| 29 |
${{ inputs.message }} |