This commit is contained in:
2025-10-15 15:25:44 +03:00
parent 56927923ad
commit 59d50a60ed
2 changed files with 17 additions and 5 deletions

View File

@@ -14,6 +14,16 @@ inputs:
runs: runs:
using: 'composite' using: 'composite'
steps: 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 - name: Set icon
id: icon id: icon
shell: bash shell: bash

View File

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