Skip to content

Commit 04f1299

Browse files
committed
fix(ori-2365): fix release script ignoring pre-release versions
1 parent a141e16 commit 04f1299

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
2525
// Getting the release version from the PR source branch
2626
// Source branch looks like this: release-1.0.0
27-
const version = context.payload.pull_request.head.ref.split('-')[1]
27+
const version = context.payload.pull_request.head.ref.split('-').slice(1).join('-');
2828
core.exportVariable('VERSION', version)
2929
3030
- uses: actions/setup-python@v3

0 commit comments

Comments
 (0)