This commit is contained in:
2024-12-23 14:26:50 +03:00
parent 4eeda1cc5a
commit 2da487874f

View File

@@ -3,9 +3,13 @@ name: notify
on: on:
workflow_call: workflow_call:
inputs: inputs:
needs: result:
required: true required: true
type: string type: string
name:
required: false
type: string
default: 'build'
jobs: jobs:
notify: notify:
runs-on: gpu runs-on: gpu
@@ -15,6 +19,6 @@ jobs:
MATTERMOST_WEBHOOK_URL: ${{ secrets.webhook }} MATTERMOST_WEBHOOK_URL: ${{ secrets.webhook }}
PAYLOAD: | PAYLOAD: |
{ {
"text": "${{ github.repository }} [Pipeline](${{ github.server_url }}/${{ inputs.repository }}/actions/runs/${{ github.run_number }}) was success :white_check_mark:" "text": "${{ github.repository }} [${{ inputs.name}}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}) was ${{ inputs.status}} :white_check_mark:"
} }