Skip to content

ci: selectable branches + tag-collision suffix for nightly-release-tag#23986

Open
AztecBot wants to merge 1 commit into
nextfrom
cb/nightly-tag-branch-select
Open

ci: selectable branches + tag-collision suffix for nightly-release-tag#23986
AztecBot wants to merge 1 commit into
nextfrom
cb/nightly-tag-branch-select

Conversation

@AztecBot

Copy link
Copy Markdown
Collaborator

What

Reworks .github/workflows/nightly-release-tag.yml to address two requests:

1. Manual runs can target a subset of branches

workflow_dispatch now exposes three boolean inputs — next, v5-next, v4-next (all default false) — so a manual run tags only the branches you check. A new configure job builds the matrix:

  • Scheduled run → tags all candidate branches (unchanged behaviour: next + v5-next on both public and private, plus v4-next on the public repo only).
  • Manual run → tags only the selected branches. Selecting nothing produces an empty matrix and the tag job is skipped.

Repo gating from the old separate jobs is preserved: next/v5-next run on aztec-packages and aztec-packages-private; v4-next only on aztec-packages. Other repos (forks) produce an empty matrix.

2. Collision-safe tag names

Before tagging, the workflow checks the remote (git ls-remote --tags origin). If the computed vX.Y.Z-nightly.YYYYMMDD tag already exists, it appends -1, -2, … until it finds an unused name. This makes re-running a day's nightly (e.g. a manual re-tag) safe instead of failing on the existing tag.

Notes

  • The two previous jobs (nightly-release-tag matrix + nightly-release-tag-v4-next) are consolidated into one matrix driven by the configure output, eliminating the duplicated tag script.
  • Input names with hyphens are read via inputs['v5-next'] and passed through env: to avoid expression parsing issues and shell injection.

Created by claudebox · group: slackbot

@AztecBot AztecBot added ci-draft Run CI on draft PRs. ci-no-fail-fast Sets NO_FAIL_FAST in the CI so the run is not aborted on the first failure claudebox Owned by claudebox. it can push to this PR. labels Jun 10, 2026
AztecBot added a commit that referenced this pull request Jun 10, 2026
AztecBot added a commit that referenced this pull request Jun 10, 2026
@alexghr alexghr marked this pull request as ready for review June 11, 2026 05:48
@alexghr alexghr requested a review from charlielye as a code owner June 11, 2026 05:48
@AztecBot AztecBot force-pushed the cb/nightly-tag-branch-select branch from 7e543df to 303f1e3 Compare June 11, 2026 05:51
@AztecBot AztecBot enabled auto-merge June 11, 2026 05:51
## What

Reworks `.github/workflows/nightly-release-tag.yml` to address two requests:

### 1. Manual runs can target a subset of branches

`workflow_dispatch` now exposes three boolean inputs — `next`, `v5-next`, `v4-next` (all default `false`) — so a manual run tags only the branches you check. A new `configure` job builds the matrix:

- **Scheduled run** → tags **all** candidate branches (unchanged behaviour: `next` + `v5-next` on both public and private, plus `v4-next` on the public repo only).
- **Manual run** → tags only the selected branches. Selecting nothing produces an empty matrix and the tag job is skipped.

Repo gating from the old separate jobs is preserved: `next`/`v5-next` run on `aztec-packages` and `aztec-packages-private`; `v4-next` only on `aztec-packages`. Other repos (forks) produce an empty matrix.

### 2. Collision-safe tag names

Before tagging, the workflow checks the remote (`git ls-remote --tags origin`). If the computed `vX.Y.Z-nightly.YYYYMMDD` tag already exists, it appends `-1`, `-2`, … until it finds an unused name. This makes re-running a day's nightly (e.g. a manual re-tag) safe instead of failing on the existing tag.

## Notes

- The two previous jobs (`nightly-release-tag` matrix + `nightly-release-tag-v4-next`) are consolidated into one matrix driven by the `configure` output, eliminating the duplicated tag script.
- Input names with hyphens are read via `inputs['v5-next']` and passed through `env:` to avoid expression parsing issues and shell injection.

---
*Created by [claudebox](https://claudebox.work/v2/sessions/ab9e531e21765a80) · group: `slackbot`*
@AztecBot AztecBot force-pushed the cb/nightly-tag-branch-select branch from 303f1e3 to 6e6c93f Compare June 11, 2026 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-draft Run CI on draft PRs. ci-no-fail-fast Sets NO_FAIL_FAST in the CI so the run is not aborted on the first failure ci-skip claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants