Skip to content

Commit 43ec490

Browse files
authored
Chore/update release actions (#441)
1 parent 0f1ca8e commit 43ec490

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/create-new-release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,16 @@ jobs:
3131
3232
echo "::set-output name=commit::$(git rev-parse HEAD)"
3333
34+
- name: Publish release branch
35+
run: git push origin release/${{ github.event.inputs.version }}
36+
37+
- run: git fetch
38+
3439
- name: Checkout main
3540
run: git checkout main
3641

3742
- name: Merge release branch to main
38-
run: git merge --no-ff release/1.2.0
43+
run: git merge --no-ff release/${{ github.event.inputs.version }}
3944

4045
- name: Create tag
4146
run: git tag -a ${{ github.event.inputs.version }}
@@ -44,10 +49,10 @@ jobs:
4449
run: git checkout develop
4550

4651
- name: Merge release branch to develop
47-
run: git merge --no-ff release/1.2.0
52+
run: git merge --no-ff release/${{ github.event.inputs.version }}
4853

4954
- name: Delete release branch
50-
run: git branch -d release/1.2.0
55+
run: git branch -d release/${{ github.event.inputs.version }}
5156

5257
- name: Create Release
5358
id: create_release

0 commit comments

Comments
 (0)