A GitHub Actions-based template for Flutter projects using Shorebird. Automatically detects Dart/YAML code pushes that require patching and sends email alerts if no patch is created.
- Watches for
.dartand.yamlfile changes - Checks if a Shorebird patch has been created
- Sends email alerts if patch is missing
- Fully automated via GitHub Actions
You can use this in two ways:
- Click the Use This Template button above
⤴️ - Create a new repository from it
- Add GitHub Secrets (see below)
- Push changes to
mainormasterbranch - Done! The action checks for patches on every push
- Copy the file
.github/workflows/shorealert.ymlinto your Flutter project repo - Go to your repository’s:
Settings → Secrets and variables → Actions - Add the following secrets:
| Secret Name | Description |
|---|---|
SHOREBIRD_TOKEN |
Token from shorebird login |
EMAIL_USER |
Your SMTP-enabled email (e.g., Gmail) |
EMAIL_PASSWORD |
App password for the email (not main pwd) |
- Commit a Dart/YAML file change and push
- If a patch isn’t created, you’ll receive an email alert
⚠️
| Name | Description |
|---|---|
SHOREBIRD_TOKEN |
JSON token from Shorebird login (shorebird login) |
EMAIL_USER |
Your sending email address |
EMAIL_PASSWORD |
Email App Password (Gmail or SMTP app pass) |
💡 Tip: Use Gmail App Passwords if you’re using Gmail.
- ✅ Preconfigured
.github/workflows/shorealert.yml - 🐦 Shorebird CLI setup and auth
- 📨 Automated email alerting via SMTP
- 💡 Smart commit diff logic for
.dartand.yamlchanges
- Make a push to
main/masterbranch with changes to a Dart/YAML file - Do not run
shorebird patch - You’ll receive an email