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
|
||||
default: ${{ github.action_status }}
|
||||
type: string
|
||||
name:
|
||||
required: false
|
||||
type: string
|
||||
default: build
|
||||
jobs:
|
||||
notify:
|
||||
runs-on: ubuntu:latest
|
||||
@@ -16,6 +20,6 @@ jobs:
|
||||
MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }}
|
||||
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