Skip to content

Commit 9ea2b56

Browse files
Merge pull request #34 from Checkmarx/other/AST-121238
Other/ast 121238
2 parents 4d889d9 + 48f6906 commit 9ea2b56

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/release-notify.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,56 @@ jobs:
159159
]
160160
}
161161
162+
- name: Send notification to Teams (SYPHER TEAM)
163+
uses: Skitionek/[email protected]
164+
with:
165+
webhook_url: ${{ secrets.MS_TEAMS_WEBHOOK_URL_SYPHER }}
166+
raw: >
167+
{
168+
"type": "message",
169+
"attachments": [
170+
{
171+
"contentType": "application/vnd.microsoft.card.adaptive",
172+
"content": {
173+
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
174+
"type": "AdaptiveCard",
175+
"version": "1.4",
176+
"msteams": {
177+
"width": "Full"
178+
},
179+
"body": [
180+
{
181+
"type": "TextBlock",
182+
"text": "New Release: **${{ inputs.product_name }} - ${{ inputs.release_version }}**",
183+
"weight": "Bolder",
184+
"size": "Medium"
185+
},
186+
{
187+
"type": "FactSet",
188+
"facts": [
189+
{ "title": "Product:", "value": "${{ inputs.product_name }}" },
190+
{ "title": "Version:", "value": "${{ inputs.release_version }}" },
191+
{ "title": "CLI Version:", "value": "${{ inputs.cli_release_version }}" },
192+
{ "title": "Contributors:", "value": "${{ steps.extract_contributors.outputs.formatted_contributors }}" }
193+
]
194+
},
195+
{
196+
"type": "TextBlock",
197+
"text": ${{ steps.sanitize_release_notes.outputs.sanitized_release_notes }},
198+
"wrap": true
199+
}
200+
],
201+
"actions": [
202+
{
203+
"type": "Action.OpenUrl",
204+
"title": "View Release",
205+
"url": "${{ inputs.release_url }}"
206+
}
207+
]
208+
}
209+
}
210+
]
211+
}
162212
163213
- name: Get Current Date
164214
id: current-date

0 commit comments

Comments
 (0)