new_notify #37

Merged
alex merged 3 commits from new_notify into main 2025-10-15 12:26:17 +00:00
2 changed files with 17 additions and 5 deletions

View File

@@ -14,6 +14,16 @@ inputs:
runs:
using: 'composite'
steps:
- name: Resolve token/from env if missing
shell: bash
run: |
if [ -z "${{ inputs.token }}" ] && [ -n "${VK_TEAMS_BOT_TOKEN}" ]; then
echo "token=${VK_TEAMS_BOT_TOKEN}" >> $GITHUB_ENV
fi
if [ -z "${{ inputs.to }}" ] && [ -n "${VK_TEAMS_CHAT_ID}" ]; then
echo "to=${VK_TEAMS_CHAT_ID}" >> $GITHUB_ENV
fi
- name: Set icon
id: icon
shell: bash

View File

@@ -28,11 +28,12 @@ jobs:
steps:
- name: Notify (started)
uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/vk-notify@main
env:
VK_TEAMS_BOT_TOKEN: ${{ secrets.VK_TEAMS_BOT_TOKEN }}
VK_TEAMS_CHAT_ID: ${{ secrets.VK_TEAMS_CHAT_ID }}
with:
result: started
name: build tag ${{ inputs.tag }}
token: ${{ secrets.VK_TEAMS_BOT_TOKEN }}
to: ${{ secrets.VK_TEAMS_CHAT_ID }}
- uses: actions/checkout@v4
with:
@@ -109,8 +110,9 @@ jobs:
- name: Notify (result)
if: always()
uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/vk-notify@main
env:
VK_TEAMS_BOT_TOKEN: ${{ secrets.VK_TEAMS_BOT_TOKEN }}
VK_TEAMS_CHAT_ID: ${{ secrets.VK_TEAMS_CHAT_ID }}
with:
result: ${{ steps.build-step.outcome }}
result: started
name: build tag ${{ inputs.tag }}
token: ${{ secrets.VK_TEAMS_BOT_TOKEN }}
to: ${{ secrets.VK_TEAMS_CHAT_ID }}