This commit is contained in:
2025-04-17 15:01:30 +03:00
parent f6f31e63f5
commit eb1af4b6ae
2 changed files with 8 additions and 1 deletions

View File

@@ -10,6 +10,9 @@ inputs:
required: false
type: string
default: build
secrets:
required: false
type: string
env:
icons: '{"success" : ":white_check_mark:", "failure": ":x:", "canceled": ":facepalm:", "started": ":warning:"}'
@@ -19,7 +22,7 @@ runs:
steps:
- uses: mattermost/action-mattermost-notify@master
with:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }}
MATTERMOST_WEBHOOK_URL: ${{ fromJSON(inputs.secrets).MM_WEBHOOK_URL }}
PAYLOAD: |
{
"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]}}"

View File

@@ -32,6 +32,10 @@ jobs:
steps:
- name: notify
uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/notify@HEAD
with:
result: 'started'
secrets: ${{ toJSON(secrets) }}
name: deploy ${{ inputs.environment }} tag ${{ inputs.tag }}
- name: Argo Login
uses: clowdhaus/argo-cd-action/@main
with: