Skip to content

fix(ci): gate flake.lock update to the first Sunday of the month - #2

Merged
DivitMittal merged 1 commit into
mainfrom
fix/flake-lock-first-sunday
Nov 4, 2026
Merged

DivitMittal merged 1 commit into
mainfrom
fix/flake-lock-first-sunday

Conversation

@DivitMittal

Copy link
Copy Markdown
Owner

Cron ORs day-of-month and day-of-week when both are set, so 0 0 1-7 * 0 fired on every day from the 1st to the 7th and on every Sunday. Each run opened a flake.lock: Update PR.

  • Schedule is now 0 0 1-7 * *.
  • A first gate step sets run=true only on Sunday (UTC) for schedule events; every other step is conditioned on it.
  • workflow_dispatch always runs.

.github/workflows/flake-lock-update.yml is re-rendered from flake/actions/flake-lock-update.nix via render-workflows.

Cron ORs day-of-month and day-of-week when both are set, so
"0 0 1-7 * 0" fired on every day from the 1st to the 7th and on every
Sunday, opening a flake.lock PR each time. Schedule days 1-7 and skip
the job's steps unless it is Sunday; manual dispatch always runs.
@DivitMittal
DivitMittal merged commit 9dfcf44 into main Nov 4, 2026
1 check passed
@DivitMittal
DivitMittal deleted the fix/flake-lock-first-sunday branch November 4, 2026 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant