Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: basic ms teams channel notifications #73

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ inputs:
required: true

### Typical / recommended
ms_teams_webhook:
description: Microsoft Teams webhook for notifications; omit=skip
ms_teams_target:
description: Microsoft Teams target/zone for notifications; omit=skip
name:
description: Name for any penetration test issues or artifacts; e.g. frontend
default: "name_unset"
Expand Down Expand Up @@ -265,6 +269,15 @@ runs:
# Cleanup completed pods
oc delete po --field-selector=status.phase==Succeeded

# https://github.com/simbo/msteams-message-card-action
- uses: simbo/[email protected]
if: inputs.ms_teams_webhook != '' && inputs.ms_teams_target != ''
with:
webhook: ${{ inputs.ms_teams_webhook }}
title: "Deploy to ${{ github.repository }}"
message: "${{inputs.ms_teams_target }}, ${{ inputs.file }}"
color: 'dodger blue'

# Action repo needs to be present for cleanup/tests
- name: Checkout local repo to make sure action.yml is present
if: ${{ github.repository }} != ${{ inputs.repository }}
Expand Down
Loading