Skip to content

Fix APT repo publishing step in release workflow (blocked by branch protection) #304

Description

@zheli

The "Update APT repository on main" step in `.github/workflows/release.yml` clones `main`, appends the new `.deb` under `apt/`, commits, and pushes directly to `main`. This fails because branch protection rules now require changes to go through a pull request:

remote: error: GH013: Repository rule violations found for refs/heads/main.
remote: - Changes must be made through a pull request.

See failing run: https://github.com/bitdynamics-ab/canton-devkit/actions/runs/31157555535/job/92800279548

The step has been temporarily disabled (`if: false`) so releases aren't blocked. Follow-up work:

  • Rework the step to open a PR (e.g. via `gh pr create` + auto-merge, or push to a branch and merge via API) instead of pushing straight to `main`.
  • Re-enable the step once fixed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions