All CI/CD runs on the Forgejo instance at git.zat.kz (self-hosted runner on the stage server, same box as docker registry + stage compose). GitHub stays as a read-only mirror via food-market-forgejo-mirror.timer. Re-enabling: `git mv .github/workflows.disabled .github/workflows`.
19 lines
724 B
YAML
19 lines
724 B
YAML
name: Notify CI failures
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: ["CI", "Docker Images"]
|
|
types: [completed]
|
|
|
|
jobs:
|
|
telegram:
|
|
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Ping Telegram
|
|
run: |
|
|
curl -sS -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" \
|
|
--data-urlencode "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}" \
|
|
--data-urlencode "text=CI FAILED: ${{ github.event.workflow_run.name }} on ${{ github.event.workflow_run.head_branch }} (${GITHUB_SHA:0:7}). https://github.com/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }}" \
|
|
> /dev/null
|