File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 steps :
1111 - uses : actions/checkout@v2
12+ with :
13+ fetch-depth : 0
14+
15+ - name : Get branch names
16+ id : branch-name
17+ uses :
tj-actions/[email protected] 1218
1319 - name : Run semver-diff
1420 id : semver-diff
3440 - name : bumpversion
3541 run : |
3642 make increase-version PART="${{ steps.semver-diff.outputs.release_type }}"
43+ env :
44+ CURRENT_BRANCH : ${{ steps.branch-name.outputs.tag }}
3745
3846 - name : Build and publish
3947 run : make release
Original file line number Diff line number Diff line change @@ -79,8 +79,11 @@ dist: clean install-deploy ## builds source and wheel package
7979 @pip install twine==3.4.1
8080 @python setup.py sdist bdist_wheel
8181
82- increase-version : guard-PART # # Increase project version
82+ increase-version : guard-PART guard-CURRENT_BRANCH # # Increase project version
83+ @git checkout main
8384 @bump2version $(PART )
85+ @git checkout $(CURRENT_BRANCH )
86+ @git merge main
8487
8588install-wheel : # # Install wheel
8689 @echo " Installing wheel..."
You can’t perform that action at this time.
0 commit comments