f
This commit is contained in:
6
.github/workflows/notify.yaml
vendored
6
.github/workflows/notify.yaml
vendored
@@ -7,6 +7,10 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
default: ${{ github.action_status }}
|
default: ${{ github.action_status }}
|
||||||
type: string
|
type: string
|
||||||
|
name:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: build
|
||||||
jobs:
|
jobs:
|
||||||
notify:
|
notify:
|
||||||
runs-on: ubuntu:latest
|
runs-on: ubuntu:latest
|
||||||
@@ -16,6 +20,6 @@ jobs:
|
|||||||
MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }}
|
MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }}
|
||||||
PAYLOAD: |
|
PAYLOAD: |
|
||||||
{
|
{
|
||||||
"text": "${{ github.repository }} [${{ github.workflow }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}) was ${{ inputs.result }} ${{ fromJson(env.icons)[inputs.result]}}"
|
"text": "${{ github.repository }} [${{inputs.name}}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}) was ${{ inputs.result }} ${{ fromJson(env.icons)[inputs.result]}}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user