Skip to content

Commit d0f4a60

Browse files
jahoomaclaude
andcommitted
Add checkout_ref input to CLI release prod workflow
Mirrors the existing input on freebuff-release.yml so prod releases can be built from a specific commit while still bumping version on latest main. Used to roll back to a known-good commit when main is broken. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9c1c96e commit d0f4a60

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/cli-release-prod.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ on:
1212
- patch
1313
- minor
1414
- major
15+
checkout_ref:
16+
description: 'Git ref to build from (commit SHA, branch, or tag). Defaults to latest main.'
17+
required: false
18+
default: ''
19+
type: string
1520

1621
concurrency:
1722
group: cli-prod-release
@@ -80,7 +85,7 @@ jobs:
8085
binary-name: codebuff
8186
new-version: ${{ needs.prepare-and-commit-prod.outputs.new_version }}
8287
artifact-name: updated-package
83-
checkout-ref: ${{ github.sha }}
88+
checkout-ref: ${{ inputs.checkout_ref || github.sha }}
8489
env-overrides: '{"NEXT_PUBLIC_CB_ENVIRONMENT": "prod"}'
8590
secrets: inherit
8691

0 commit comments

Comments
 (0)