Skip to content

GitHub Actions Setup

Workflow File

The workflow is defined in .github/workflows/schedule.yml with dual cron triggers + manual dispatch.

Configure Secrets

Go to repo → SettingsSecrets and variablesActionsNew repository secret

NameDescriptionRequired
PUSHPLUS_TOKENPushPlus push token
PUSHPLUS_TOPICGroup code❌ Optional
GEMINI_API_KEYGemini API Key❌ Classic quotes used if empty
GEMINI_MODELModel name❌ Default: gemini-3-flash-preview
QWEATHER_API_KEYQWeather API Key
QWEATHER_API_HOSTQWeather Host

⚠️ Names must match exactly

Secret names are case-sensitive and must match the table above exactly.

City Config

City info is not sensitive — it's hardcoded directly in schedule.yml:

yaml
env:
  CITY_1_PERSON: Alice
  CITY_1_ID: '101010100'
  CITY_1_NAME: Beijing

Manual Trigger Test

  1. ActionsDaily Weather PushRun workflow
  2. Select mode → Run
  3. Check logs for success/failure

Troubleshooting

IssueFix
PUSHPLUS_TOKEN missingAdd Secret with exact name
No cities configuredCheck CITY_1_PERSON in schedule.yml
Weather fetch failedVerify QWEATHER_API_KEY and QWEATHER_API_HOST
Gemini failedCheck GEMINI_API_KEY validity
Cron didn't trigger5–15 min delay is normal

Free Tier

  • Public repos: unlimited
  • Private repos: 2000 min/month
  • This script: ~1–2 min/run × 2/day = ~60 min/month ✅