new_notify #20
16
.github/workflows/notify.yaml
vendored
16
.github/workflows/notify.yaml
vendored
@@ -1,5 +1,3 @@
|
|||||||
env:
|
|
||||||
icons: '{"success" : ":white_check_mark:", "failure": ":x:", "canceled": ":facepalm:", "started": ":warning:", "": ":boxing_glove:"}'
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
@@ -15,11 +13,13 @@ jobs:
|
|||||||
notify:
|
notify:
|
||||||
runs-on: gpu
|
runs-on: gpu
|
||||||
steps:
|
steps:
|
||||||
- uses: mattermost/action-mattermost-notify@master
|
- uses: dosymep/vk-teams-action@v1.0.0
|
||||||
|
env:
|
||||||
|
ICONS: '{"success":"✅","failure":"❌","canceled":"🤦","started":"⚠️"}'
|
||||||
with:
|
with:
|
||||||
MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }}
|
token: ${{ fromJSON(inputs.secrets).VK_TEAMS_BOT_TOKEN }}
|
||||||
PAYLOAD: |
|
to: ${{ fromJSON(inputs.secrets).VK_TEAMS_CHAT_ID }}
|
||||||
{
|
format: MarkdownV2
|
||||||
"text": "${{ github.repository }} [${{inputs.name}}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}) was ${{ inputs.result }} by ${{ github.event.sender.login}} ${{ fromJson(env.icons)[inputs.result]}}"
|
message: |
|
||||||
}
|
${{ github.repository }} \[${{inputs.name}}\]\(${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}\) was ${{ inputs.result }} by ${{ github.event.sender.login }} ${{ fromJson(env.ICONS)[inputs.result] }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user