Skip to content

Commit 4b02035

Browse files
authored
Merge pull request #27 from cryptlex/ahmad/update-ci
ci: update ci workflow to push version updates to release branch
2 parents 9116136 + 1b83608 commit 4b02035

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/update-version.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
steps:
1919
- name: Checkout code
2020
uses: actions/checkout@v2
21+
22+
- name: Create new branch
23+
run: git checkout -b release/${{ github.event.inputs.packageVersion }}
2124

2225
- name: Update Package Version
2326
run: |
@@ -35,4 +38,5 @@ jobs:
3538
git config user.email github-actions@github.com
3639
git commit -m "updated version" | exit 0
3740
git tag ${{ github.event.inputs.packageVersion }}
38-
git push & git push --tags
41+
git push --set-upstream origin release/${{ github.event.inputs.packageVersion }}
42+
git push --tags

0 commit comments

Comments
 (0)