Skip to content

Commit 789ac3c

Browse files
author
rahul-infra
committed
test
1 parent 3e4c75d commit 789ac3c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/release-preview.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,13 @@ jobs:
4949
id: semantic
5050
env:
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
# Override GitHub's environment variables to make semantic-release see the actual PR branch
53+
GITHUB_REF: refs/heads/${{ github.event.pull_request.head.ref }}
54+
GITHUB_REF_NAME: ${{ github.event.pull_request.head.ref }}
55+
GITHUB_HEAD_REF: ""
5256
run: |
57+
echo "Running semantic-release on branch: ${{ github.event.pull_request.head.ref }}"
58+
5359
# Run semantic-release with inline package installation (same as your local command)
5460
OUTPUT=$(npx --package semantic-release --package @semantic-release/exec --package conventional-changelog-conventionalcommits semantic-release 2>&1 || true)
5561
echo "$OUTPUT"

0 commit comments

Comments
 (0)