No description
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| action.yml | ||
| README.md | ||
action-telegram-notify
Shared Forgejo Composite Action to send CI build notifications (success/failure) to Telegram via n8n.
Usage
Add this step to the end of any job in your workflow (e.g. .gitea/workflows/deploy.yml or .forgejo/workflows/ci.yml):
- name: Telegram Notification
if: always()
uses: http://forgejo:3000/common/action-telegram-notify@v1
with:
status: ${{ job.status }}
(Hinweis: Auf dem Forgejo-Runner nutzt die interne Docker-Bridge http://forgejo:3000/)
Inputs
| Input | Description | Required | Default |
|---|---|---|---|
status |
Job status (${{ job.status }}) |
Yes | - |
webhook_url |
n8n Webhook endpoint URL | No | https://n8n.irte.ch/webhook/forgejo-build-notification |
How it works
- Runs automatically on
success,failure, orcancelledviaif: always(). - Gathers commit metadata, branch, actor, run number, and repository info.
- Sends a clean JSON payload to the central n8n webhook which delivers the message to Telegram.