File tree Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Update CHANGELOG
2+ on :
3+ release :
4+ types : [published]
5+
6+ jobs :
7+ changelog :
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - name : Checkout
12+ uses : actions/checkout@v2
13+
14+ - name : Generate CHANGELOG
15+ uses :
tj-actions/[email protected] 16+ with :
17+ token : ${{ secrets.PAT_TOKEN }}
18+
19+ - name : Create Pull Request
20+ uses : peter-evans/create-pull-request@v3
21+ with :
22+ token : ${{ secrets.PAT_TOKEN }}
23+ commit-message : Update CHANGELOG
24+ committer :
github-actions[bot] <github-actions[bot]@[email protected] > 25+ author : github-actions[bot] <github-actions[bot]@users.noreply.github.com>
26+ branch : chore/update-changelog
27+ base : master
28+ delete-branch : true
29+ title : ' Update CHANGELOG'
30+ body : |
31+ Update changelog
32+ - Auto-generated by github-actions[bot]
33+ assignees : jackton1
34+ reviewers : jackton1
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ MANAGE_PY := $(PYTHON) manage.py
77PYTHON_PIP := /usr/bin/env pip
88PIP_COMPILE := /usr/bin/env pip-compile
99PART := patch
10- PACKAGE_VERSION = $(shell $(PYTHON ) setup.py --version)
1110
1211# Put it first so that "make" without argument is like "make help".
1312help :
@@ -50,13 +49,14 @@ update-requirements: ## Updates the requirement.txt adding missing package depe
5049 @$(PIP_COMPILE )
5150
5251tag-build :
53- @git tag v$(PACKAGE_VERSION )
52+ @git tag v$(shell $( PYTHON ) setup.py --version )
5453
5554release-to-pypi : clean-build increase-version tag-build # # Release project to pypi
5655 @$(PYTHON_PIP ) install -U twine
5756 @$(PYTHON ) setup.py sdist bdist_wheel
5857 @twine check dist/*
5958 @twine upload dist/*
59+ @git push --tags
6060
6161# ----------------------------------------------------------
6262# ---------- Upgrade project version (bumpversion) --------
You can’t perform that action at this time.
0 commit comments