new_notify #36

Merged
alex merged 3 commits from new_notify into main 2025-10-15 12:21:42 +00:00

View File

@@ -11,7 +11,11 @@ on:
force_build:
type: boolean
default: false
secrets:
VK_TEAMS_BOT_TOKEN:
required: true
VK_TEAMS_CHAT_ID:
required: true
jobs:
build:
@@ -20,13 +24,15 @@ jobs:
CR_REGISTRY: crp8vh46gd976oq8ipla
CR_REPO: ${{ github.event.repository.name }}
IMAGE_TAG: ${{ github.sha }}
steps:
- name: notify
- name: Notify (started)
uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/vk-notify@main
with:
result: 'started'
result: started
name: build tag ${{ inputs.tag }}
secrets: ${{ toJSON(secrets) }}
token: ${{ secrets.VK_TEAMS_BOT_TOKEN }}
to: ${{ secrets.VK_TEAMS_CHAT_ID }}
- uses: actions/checkout@v4
with:
@@ -100,10 +106,11 @@ jobs:
path: /cache/buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
- name: post-notify
- name: Notify (result)
if: always()
uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/vk-notify@main
with:
result: ${{ steps.build-step.outcome }}
name: build tag ${{ inputs.tag }}
secrets: ${{ toJSON(secrets) }}
token: ${{ secrets.VK_TEAMS_BOT_TOKEN }}
to: ${{ secrets.VK_TEAMS_CHAT_ID }}