-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (30 loc) · 1.14 KB
/
library-release-notify.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# NOTE: This file comes from `savi-lang/base-standard-library`
#
# This workflow is responsible for sending out notifications to various feeds
# whenever a new release of the library is published.
#
# The workflow is triggered on each published release in GitHub Releases.
name: library-release-notify
on:
release:
types: [published]
jobs:
# Publish a message in the notifications stream of the Savi instance of
# the Zulip chat service using the given bot credentials.
zulip:
runs-on: ubuntu-latest
steps:
- uses: zulip/github-actions-zulip/send-message@v1
with:
api-key: ${{ secrets.BOT_ZULIP_API_KEY }}
email: ${{ secrets.BOT_ZULIP_EMAIL }}
organization-url: https://savi.zulipchat.com
to: notifications
type: stream
topic: ${{ github.event.repository.full_name }} releases
content: "
[${{ github.event.release.name }}](${{ github.event.release.html_url }})
of
[${{ github.event.repository.full_name }}](${{ github.event.repository.html_url }})
has been released!\n\n
${{ github.event.release.body }}"