CICD-228 · Scheduled maintenance pipelines
Encyclopedia · Advanced workflow orchestration · All snippets
Previous · CICD-227 · Next · CICD-229
1. Where it fits
- Placement .github/workflows/maintenance.yml workflow fragment.
- Prerequisites authenticated GitHub CLI, approved target repositories, or Actions runner for YAML entries.
- Platforms github-actions.
2. Copy the snippet
yaml
on:
schedule:
- cron: "17 3 * * 1"
workflow_dispatch:
concurrency:
group: weekly-maintenance
cancel-in-progress: false3. How it works
The CI server evaluates this event selector before runners are allocated. Check the exact event name and configured filters.
4. Verify the result
The schedule is UTC on the default branch. Use manual dispatch to prove the same maintenance job can run after delays.
Watch for. Place event filters at workflow scope and test an event that should run and an event that should be skipped.
Validation syntax-validated (YAML parse). Status definitions.