File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,13 +20,15 @@ jobs:
2020 VERSION=${BRANCH_NAME#release/}
2121
2222 echo "::set-env name=RELEASE_VERSION::$VERSION"
23+
2324 - name : Extract version from branch name (for hotfix branches)
2425 if : startsWith(github.event.pull_request.head.ref, 'hotfix/')
2526 run : |
2627 BRANCH_NAME="${{ github.event.pull_request.head.ref }}"
2728 VERSION=${BRANCH_NAME#hotfix/}
2829
2930 echo "::set-env name=RELEASE_VERSION::$VERSION"
31+
3032 - name : Create Release
3133 uses : actions/create-release@v1
3234 env :
3537 ref : master
3638 tag_name : ${{ env.RELEASE_VERSION }}
3739 release_name : ${{ env.RELEASE_VERSION }}
40+
3841 - name : Backport release to dev branch
3942 uses : thomaseizinger/create-pull-request@v1
4043 with :
4346 base : dev
4447 title : Backport release ${{ env.RELEASE_VERSION }} to dev branch
4548 reviewers : ${{ github.event.issue.user.login }}
49+
4650 # if needed, you can checkout the latest master here, build artifacts and publish / deploy them somewhere
You can’t perform that action at this time.
0 commit comments