new_notify #37
@@ -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
|
||||
|
||||
12
.github/workflows/build.yaml
vendored
12
.github/workflows/build.yaml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user