Skip to content

Commit 3eaf214

Browse files
abueideclaude
andauthored
fix(ci): pass GITHUB_REF via devbox -e flag for beta releases (#1144)
The step-level env override GITHUB_REF=refs/heads/beta was not being picked up by semantic-release inside the devbox nix shell. Use devbox's -e flag to explicitly inject the env var into the shell environment. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0f87dc7 commit 3eaf214

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@ jobs:
6666

6767
- name: Release (beta)
6868
if: inputs.type == 'beta'
69-
run: devbox run --config=shells/devbox-fast.json release
69+
run: devbox run -e GITHUB_REF=refs/heads/beta --config=shells/devbox-fast.json release
7070
env:
7171
GH_TOKEN: ${{ github.token }}
72-
GITHUB_REF: refs/heads/beta
7372

7473
- name: Release (production)
7574
if: inputs.type == 'production'

0 commit comments

Comments
 (0)