Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

daily-signal

Reusable GitHub Actions template for meaningful contribution signals (not dummy commits).


Why this exists

daily-signal keeps your contribution flow active with useful, auditable logs:

  • Daily engineering pulse
  • Learning notes
  • Weekly digest
  • Health metadata

No random spam text. All outputs are structured and reviewable.


System Flow

flowchart TD
  A[Schedule / Manual Trigger] --> B[Load config.yml]
  B --> C[Apply guardrails max/day weekend throttle duplicate slot]
  C -->|skip| D[Write status skipped with reason]
  C -->|pass| E[Generate useful content pulse learning weekly]
  E --> F[Resolve target repo self profile custom]
  F --> G[Commit and push]
  G --> H[Generate run summary JSON]
  H --> I[Send Discord embed success/failure]
  H --> J[Send Telegram failure optional]
Loading

Setup Flow

flowchart LR
  A[Use Template or Fork] --> B[Run Setup Wizard workflow]
  B --> C[Choose target mode timezone and limits]
  C --> D[Auto-write config.yml]
  D --> E[Optional set secrets]
  E --> F[Run Daily Signal once manually]
  F --> G[Scheduled automation continues]
Loading

Quick Start

  1. Click Use this template.
  2. Go to Actions -> Setup Wizard -> Run workflow.
  3. Choose configuration:
    • target_mode: self | profile | custom
    • timezone
    • commits/day policy
  4. Optional secrets:
    • DISCORD_WEBHOOK_URL (success + failure embed)
    • TELEGRAM_BOT_TOKEN, TELEGRAM_CHAT_ID (failure alert)
    • TARGET_REPO_TOKEN (required for cross-repo push)
  5. Run Daily Signal once manually to validate.

Target Modes

  • self -> writes to same repo (default)
  • profile -> writes to username/username profile repo
  • custom -> writes to repo defined in config

Repo Structure

  • .github/workflows/setup.yml -> setup wizard
  • .github/workflows/heartbeat.yml -> main engine
  • .github/workflows/healthcheck.yml -> status check
  • .github/workflows/ci.yml -> lint and test gate
  • .daily-signal/config.yml -> runtime config
  • .daily-signal/config.schema.json -> config schema
  • scripts/runner.py -> generation engine
  • scripts/setup.py -> setup writer
  • tests/test_runner.py -> unit tests
  • logs/ -> generated outputs

Discord Report Details

Each run sends a detailed embed with:

  • execution status
  • source repo + run URL
  • target mode/repo/branch
  • schedule window info
  • actions executed
  • generated files
  • skip reason (if any)

Reliability Notes

  • Scheduled windows run automatically (event-driven, not daemon process).
  • Concurrency lock prevents overlap.
  • Guardrails prevent noisy/duplicate commits.
  • Works continuously as long as GitHub Actions is enabled.

Quality Gates

  • CI runs ruff + pytest on push/PR.
  • Config schema validates nested runtime fields.
  • Runtime slot selection uses schedule.slots as source of truth.

License / Usage

Free to use as your own template. Recommended: keep commit content meaningful.

About

Reusable GitHub Actions template for meaningful automated contribution signals with setup wizard, guardrails, and rich Discord reporting.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages