Skip to content

fix(ci): use PR instead of direct push for Nix version update#71

Merged
vmvarela merged 1 commit intomasterfrom
issue-63/fix-nix-update-ci
Mar 15, 2026
Merged

fix(ci): use PR instead of direct push for Nix version update#71
vmvarela merged 1 commit intomasterfrom
issue-63/fix-nix-update-ci

Conversation

@vmvarela
Copy link
Owner

Summary

  • The update-nix job in the release workflow was doing a git push directly to master, which is blocked by branch protection rules.
  • Replaced the direct push with a flow that creates a temporary branch (chore/nix-update-<tag>) and opens a Pull Request automatically.
  • Added pull-requests: write permission to the job.

Changes

  • Step renamed: Commit and pushOpen Pull Request
  • New flow: checkout branch → commit → push branch → gh pr create
  • Idempotent: if versions.json has no changes, the step exits cleanly with no PR created.

Closes #63

The update-nix job was pushing directly to master, which is blocked
by branch protection rules. Replace the direct push with a workflow
that creates a dedicated branch and opens a Pull Request.

Closes #63
@vmvarela vmvarela added this to the Sprint 4 milestone Mar 15, 2026
@vmvarela vmvarela added the type:chore Maintenance, refactoring, tooling label Mar 15, 2026
@vmvarela vmvarela merged commit f40f31d into master Mar 15, 2026
6 checks passed
@vmvarela vmvarela deleted the issue-63/fix-nix-update-ci branch March 15, 2026 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:chore Maintenance, refactoring, tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nix update job fails: direct push to master blocked by branch protection

1 participant