Skip to content

fix(ci): flake-sync opens auto-merge PR - #19

Merged
jasonodoom merged 1 commit into
mainfrom
fix/flake-sync-protected-push
Jul 11, 2026
Merged

fix(ci): flake-sync opens auto-merge PR#19
jasonodoom merged 1 commit into
mainfrom
fix/flake-sync-protected-push

Conversation

@jasonodoom

Copy link
Copy Markdown
Contributor

The flake-sync job ends with a direct push to main, but main is protected (requires the test check), so the first run that detects drift will die at GH006 exactly as the eval workflow did before #6. All runs to date failed earlier at YAML validation (repaired in #5), so this latent failure has never been reached.

This applies the #6 pattern: push the updated flake.nix to a bot/ branch and open a PR that auto-merges once CI passes. Checkout and PR use RELEASE_PAT so the sync PR triggers the required test check; workflow_dispatch is added so the job can be run on demand. Loop prevention moves the [skip-flake-sync] marker into the PR title so the squash-merge commit carries it.

Note: flake.nix is currently stale on main. The fast-uri bump (#3) changed package-lock.json while this workflow was still failing validation, so npmDepsHash no longer matches and the flake does not build. A dispatch run of this workflow after merge should detect the drift and open the sync PR that repairs it.

main is protected (requires the test check), so the sync job's
direct push would die at GH006 like the eval workflow did before #6.
Push to a bot/ branch instead and open a PR that auto-merges once CI
passes, using RELEASE_PAT so the PR actually triggers the required
check. Add workflow_dispatch for manual runs.
@jasonodoom
jasonodoom enabled auto-merge (squash) July 11, 2026 06:45
@jasonodoom
jasonodoom merged commit 7cd0c50 into main Jul 11, 2026
3 checks passed
@jasonodoom
jasonodoom deleted the fix/flake-sync-protected-push branch July 11, 2026 06:46
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