Skip to content

Commit

Permalink
Release notes to teams workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
woksin committed Nov 15, 2021
1 parent 336fa3d commit 7c80b06
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ms-teams-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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: Runtime ${{ 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: Runtime ${{ 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 }}" }]}]'

0 comments on commit 7c80b06

Please sign in to comment.