Skip to content

Commit d9c160a

Browse files
Extract version in backport job
1 parent 01bacc3 commit d9c160a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ jobs:
3535
runs-on: ubuntu-latest
3636
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/')
3737
steps:
38+
- name: Extract version from branch name
39+
run: |
40+
BRANCH_NAME="${{ github.event.pull_request.head.ref }}"
41+
VERSION=${BRANCH_NAME#release/}
42+
43+
echo "::set-env name=RELEASE_VERSION::$VERSION"
3844
- name: Create pull request for merging release branch into dev
3945
uses: thomaseizinger/create-pull-request@v1
4046
with:

0 commit comments

Comments
 (0)