Notify on Deploy from GitHub Actions
name: Notify Teams
on: workflow_dispatch
jobs:
notify:
runs-on: ubuntu-latest
steps:
- run: brew install osodevops/tap/teams
- run: teams message send --team "$TEAM_ID" --channel "$CHANNEL_ID" --body "Deploy completed" --output json
env:
TEAMS_CLI_ACCESS_TOKEN: ${{ secrets.TEAMS_CLI_ACCESS_TOKEN }}
TEAM_ID: ${{ vars.TEAM_ID }}
CHANNEL_ID: ${{ vars.CHANNEL_ID }}