-
Notifications
You must be signed in to change notification settings - Fork 93
30 lines (27 loc) · 1.31 KB
/
publish-release.yml
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
name: Publish release
on:
release:
types: [published]
jobs:
send_message_job:
runs-on: ubuntu-latest
name: Publish release
steps:
- name: Send a message to Microsoft Teams
uses: aliencube/[email protected]
with:
webhook_uri: ${{ secrets.TEAMS_WEBHOOK_URL}}
title: New release ${{ github.event.release.name }} from ${{ github.event.repository.name }}
summary: A new release (${{ github.event.release.tag_name }}) has been created
text: ${{ github.event.release.body }}
theme_color: 0000FF
actions: '[{"@type": "OpenUri", "name": "View release", "targets": [{ "os": "default", "uri": "${{ github.event.release.html_url }}"}]}]'
- name: Send a message to Microsoft Outlook
uses: aliencube/[email protected]
with:
webhook_uri: ${{ secrets.OUTLOOK_WEBHOOK_URL}}
title: New release ${{ github.event.release.name }} from ${{ github.event.repository.name }}
summary: A new release (${{ github.event.release.tag_name }}) has been created
text: ${{ github.event.release.body }}
theme_color: 0000FF
actions: '[{"@type": "OpenUri", "name": "View release", "targets": [{ "os": "default", "uri": "${{ github.event.release.html_url }}"}]}]'