diff --git a/.gitea/actions/notify/action.yaml b/.gitea/actions/notify/action.yaml index 225b771..e91c9a5 100644 --- a/.gitea/actions/notify/action.yaml +++ b/.gitea/actions/notify/action.yaml @@ -23,8 +23,8 @@ runs: env: ICONS: '{"success":"✅","failure":"❌","canceled":"🤦","started":"⚠️"}' with: - token: ${{ fromJSON(inputs.secrets).VK_TEAMS_BOT_TOKEN }} - to: ${{ fromJSON(inputs.secrets).VK_TEAMS_CHAT_ID }} + token: ${{ fromJSON(inputs.secrets || '{}').VK_TEAMS_BOT_TOKEN }} + to: ${{ fromJSON(inputs.secrets || '{}').VK_TEAMS_CHAT_ID }} format: MarkdownV2 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] }}