---
title: "Jangan Lewatkan Kegagalan GitHub Actions: Peringatan Instan dengan Echobell"
description: "Siapkan notifikasi webhook instan untuk kegagalan GitHub Actions memakai Echobell. Jaga pipeline CI/CD Anda tetap terpantau lewat peringatan push atau panggilan telepon dalam hitungan detik."
date: 2025-04-26
author: Nooc
authorAvatarLink: /images/avatars/nooc.webp
authorLink: https://nooc.me
tags:
  - Echobell
  - GitHub Actions
  - CI/CD
  - notifikasi webhook
  - peringatan untuk developer
---

# Jangan Lewatkan Kegagalan GitHub Actions: Peringatan Instan dengan Echobell

Notifikasi email dan Slack untuk kegagalan CI gampang terlewat. [Echobell Notification Action](https://github.com/weelone/echobell-action) mengirim peringatan webhook langsung ke ponsel Anda—notifikasi push untuk build biasa, panggilan telepon untuk kegagalan produksi—sehingga pipeline yang rusak tidak luput dari perhatian.

## Penyiapan

### 1. Buat Saluran Echobell

1. [Unduh Echobell](https://apps.apple.com/app/apple-store/id6743597198?pt=128151925&ct=blog-github-actions-notifications-id&mt=8) / [Google Play](https://play.google.com/store/apps/details?id=one.echobell.echobellandroid) lalu masuk
2. Buat saluran dengan nama seperti "GitHub CI/CD Alerts"
3. Salin URL webhook dari pengaturan saluran
4. Di repositori GitHub Anda: **Settings → Secrets and variables → Actions → New repository secret**
5. Beri nama `ECHOBELL_WEBHOOK_URL`, lalu tempelkan URL-nya

### 2. Tambahkan ke Workflow Anda

**Penyiapan dasar** (workflow dengan satu job):

```yaml
name: Build and Test

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      - name: Build
        run: npm run build

      - name: Test
        run: npm test

      - name: Notify on Failure
        if: failure()
        uses: weelone/echobell-action@v1
        with:
          webhook-url: ${{ secrets.ECHOBELL_WEBHOOK_URL }}
```

**Pipeline dengan banyak job** — pakai job notifikasi khusus yang bergantung pada semua job kritis:

```yaml
name: Deploy Pipeline

on:
  push:
    branches: [main]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Run Tests
        run: npm test

  build:
    needs: test
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Build
        run: npm run build

  deploy:
    needs: build
    runs-on: ubuntu-latest
    steps:
      - name: Deploy
        run: npm run deploy

  notify_on_failure:
    runs-on: ubuntu-latest
    needs: [test, build, deploy]
    if: failure()
    steps:
      - name: Send Failure Notification
        uses: weelone/echobell-action@v1
        with:
          webhook-url: ${{ secrets.ECHOBELL_WEBHOOK_URL }}
```

Job notifikasi khusus memberi Anda satu peringatan terkonsolidasi untuk kegagalan beruntun, alih-alih beberapa notifikasi terpisah.

## Kiat

**Judul notifikasi** sebaiknya menjawab: apa yang gagal, di mana, dan kapan. Gunakan pola seperti `❌ Main Branch CI Failed` atau `🚨 Deploy Pipeline Down - Production`.

**Gunakan saluran terpisah per tingkat keparahan.** Sediakan saluran standar untuk peringatan CI biasa dan saluran kedua yang disetel ke **Panggilan** untuk kegagalan produksi. Arahkan workflow yang berbeda ke URL webhook yang berbeda. Lihat [notifikasi panggilan](/id/blog/grafana-call-notification) untuk detailnya.

**Bagikan saluran ke tim Anda.** Buat satu saluran untuk kegagalan CI/CD yang perlu dilihat seluruh tim, dan saluran terpisah untuk masalah infrastruktur saja. [Saluran bersama](/id/features/channels) di Echobell memungkinkan rekan tim berlangganan dengan preferensi notifikasi masing-masing—tidak perlu semua orang mengonfigurasi webhook sendiri-sendiri.

## Terkait

- [Dokumentasi webhook](/id/docs/webhook) — referensi lengkap API webhook
- [Templat](/id/docs/template) dan [Kondisi](/id/docs/conditions) — sesuaikan isi notifikasi dan penyaringannya
- [Notifikasi panggilan Grafana](/id/blog/grafana-call-notification) — peringatan panggilan telepon untuk sistem pemantauan
- [Notifikasi WebhookMCP](/id/blog/get-notified-with-webhook-mcp) — peringatan untuk penyelesaian tugas AI
- Dokumentasi fitur: [Saluran](/id/features/channels), [Webhook](/id/features/webhooks), [Pemicu email](/id/features/email-triggers), [Notifikasi panggilan](/id/features/call-notifications)
