feat(workflows): move dev-cascade into dedicated cascade-dev.yml #51

Merged
jmiller merged 1 commits from feat/cascade-dev-workflow into main 2026-07-05 19:39:56 +00:00
Owner

Moves the "recreate dev from main" function out of auto-release.yml Step 11 into its own workflow, and makes it actually work on protected branches.

What changed

  • cascade-dev.yml (new): on completion of "Universal: Build & Release" (+ manual workflow_dispatch), force-push maindev. The automation identity is force-push allowlisted on dev via branch-protection.yml, so this works where the old delete+recreate could not (Gitea refuses to delete a protected branch). Force-push (not merge) means no version-file conflicts; running after the release means dev picks up the fully version-bumped + changelog-promoted main. Skips Template-* repos; concurrency-guarded.
  • auto-release.yml Step 11: drop the dev delete/recreate block; keep the rc cleanup.

Why

The old Step 11 tried DELETE /branches/dev then re-create — which silently failed once dev became a protected branch, leaving dev stale after each release. A dedicated force-push workflow is the reliable path now that the bot is force-push allowlisted (#334 / #54 / #49).

Refs #53.

https://claude.ai/code/session_01WbGBN9VyRK61zczYWcCQ2i

Moves the "recreate dev from main" function out of `auto-release.yml` Step 11 into its own workflow, and makes it actually work on protected branches. ## What changed - **`cascade-dev.yml` (new):** on completion of "Universal: Build & Release" (+ manual `workflow_dispatch`), force-push `main` → `dev`. The automation identity is force-push allowlisted on `dev` via `branch-protection.yml`, so this works where the old delete+recreate could not (Gitea refuses to delete a protected branch). Force-push (not merge) means no version-file conflicts; running *after* the release means `dev` picks up the fully version-bumped + changelog-promoted `main`. Skips `Template-*` repos; concurrency-guarded. - **`auto-release.yml` Step 11:** drop the `dev` delete/recreate block; keep the rc cleanup. ## Why The old Step 11 tried `DELETE /branches/dev` then re-create — which silently failed once `dev` became a protected branch, leaving `dev` stale after each release. A dedicated force-push workflow is the reliable path now that the bot is force-push allowlisted (#334 / #54 / #49). Refs #53. https://claude.ai/code/session_01WbGBN9VyRK61zczYWcCQ2i
jmiller added 1 commit 2026-07-05 19:36:34 +00:00
feat(workflows): move dev-cascade into dedicated cascade-dev.yml
Generic: Project CI / Lint & Validate (pull_request) Has been skipped
Universal: PR Check / Branch Policy (pull_request) Failing after 2s
Universal: PR Check / Validate PR (pull_request) Has been skipped
Joomla: Metadata Validation / Validate Joomla Metadata (pull_request) Has been skipped
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Repo Health / Access control (pull_request) Successful in 1s
Universal: PR Check / Secret Scan (pull_request) Successful in 5s
Branch Cleanup / Delete merged branch (pull_request) Successful in 1s
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Universal: Workflow Sync Trigger / Sync workflows to live repos (pull_request) Successful in 10s
Generic: Project CI / Tests (pull_request) Has been cancelled
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Universal: PR Check / Report Issues (pull_request) Has been cancelled
Generic: Repo Health / Scripts governance (pull_request) Has been cancelled
Generic: Repo Health / Repository health (pull_request) Has been cancelled
Generic: Repo Health / Report: Scripts Governance (pull_request) Has been cancelled
Generic: Repo Health / Report: Repository Health (pull_request) Has been cancelled
c84fd09e18
Moves the "recreate dev from main" function out of auto-release.yml Step 11
into its own workflow, and makes it actually work on protected branches.

- cascade-dev.yml: on release-workflow completion (+ manual dispatch),
  force-push main -> dev. The bot is force-push allowlisted on dev via
  branch-protection.yml, so this works where delete+recreate could not
  (Gitea refuses to delete a protected branch). Force-push (not merge) =>
  no version-file conflicts; running after the release => dev gets the
  fully version-bumped + changelog-promoted main. Skips Template-* repos;
  concurrency-guarded.
- auto-release.yml Step 11: drop the dev delete/recreate; keep rc cleanup.

Refs Template-Generic#53; enabled by the bot allowlist (#334/#54/#49).

Claude-Session: https://claude.ai/code/session_01WbGBN9VyRK61zczYWcCQ2i
jmiller merged commit d93c69da9d into main 2026-07-05 19:39:56 +00:00
jmiller deleted branch feat/cascade-dev-workflow 2026-07-05 19:39:56 +00:00
Sign in to join this conversation.
No Reviewers
Priority -
Type -
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/Template-Joomla#51