Skip to content

ci: put the nightly packaged build on main, pinned to cline-dev - #17

Open
richardosborne14 wants to merge 1 commit into
mainfrom
ci/nightly-to-main
Open

ci: put the nightly packaged build on main, pinned to cline-dev#17
richardosborne14 wants to merge 1 commit into
mainfrom
ci/nightly-to-main

Conversation

@richardosborne14

Copy link
Copy Markdown

Why

nightly.yml has a cron: '0 3 * * *' schedule but has never run and never could. GitHub registers schedule: triggers only from the repository's default branch, and the workflow existed only on cline-dev. The file has to be on main for the cron to exist at all.

Why it also needs the ref pin

Moving the file alone would make it worse than inert. actions/checkout defaults to the branch the workflow ran from, and main does not contain .github/actions/setup — so a default checkout would fail at that step every single night, mailing a failure daily and proving nothing except that the alarm works.

So the checkout is pinned: the schedule comes from main, the tree under test comes from cline-dev. The ref is a workflow_dispatch input defaulting to cline-dev, so a one-off packaging check against any branch or SHA needs no edit.

Remove the pin when cline-dev merges to main, or when main is retired.

Scope

One file. Otherwise byte-identical to the cline-dev copy, deliberately — a second gratuitous difference between the two copies would be a maintenance trap. Nothing else on main is touched, and no product code is involved.

Note on the required checks

main requires 6 status checks (Typecheck, Lint, Test (editor), Test (platform-node), Build, Check build artefacts). This PR adds a workflow file and changes no code, so any failure here is a pre-existing property of the year-old main tree rather than something this change introduced.

🤖 Generated with Claude Code

The workflow existed only on `cline-dev`, and GitHub registers `schedule:`
triggers exclusively from the repository's default branch — so its 03:00 cron was
never registered and the nightly had never run once since it was written.

Moving the file to `main` is necessary but not sufficient: `actions/checkout`
defaults to the branch the workflow ran from, and `main` does not contain
`.github/actions/setup`, so a default checkout would fail at that step every
night and prove only that the alarm works. The checkout is therefore pinned —
the schedule comes from `main`, the tree under test comes from `cline-dev`.

The ref is a `workflow_dispatch` input defaulting to `cline-dev`, so a one-off
packaging check against any branch or SHA needs no edit. Remove the pin when
`cline-dev` merges to `main`.

Otherwise byte-identical to the `cline-dev` copy, deliberately: a second
gratuitous difference between the two would be a maintenance trap.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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