-
Notifications
You must be signed in to change notification settings - Fork 3
30 lines (27 loc) · 1.19 KB
/
ms-teams-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: Microsoft Teams Release Notification
on:
release:
types:
- published
jobs:
notify:
name: Notify
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Notify of release
uses: aliencube/microsoft-teams-actions@v0.8.0
if: ${{ github.event.release.prerelease == false }}
with:
webhook_uri: ${{ secrets.TEAMS_RELEASES_WEBHOOK }}
title: DotNET.SDK ${{ github.event.release.tag_name }} was just released!
text: ${{ github.event.release.body }}
actions: '[{ "@type": "OpenUri", "name": "View Release Note", "targets": [{ "os": "default", "uri": "${{ github.event.release.html_url }}" }]}]'
- name: Notify of prerelease
uses: aliencube/microsoft-teams-actions@v0.8.0
if: ${{ github.event.release.prerelease == true }}
with:
webhook_uri: ${{ secrets.TEAMS_PRERELEASES_WEBHOOK }}
title: DotNET.SDK ${{ github.event.release.tag_name }} was just released!
text: ${{ github.event.release.body }}
actions: '[{ "@type": "OpenUri", "name": "View Release Note", "targets": [{ "os": "default", "uri": "${{ github.event.release.html_url }}" }]}]'