Skip to content

Commit

Permalink
Small fixes to include changelog in release
Browse files Browse the repository at this point in the history
  • Loading branch information
dansondergaard committed Mar 13, 2023
1 parent 60c346a commit 84d1534
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
python-version: "3.10"

- name: Extract changes for this release
run: cat CHANGELOG.rst | python extract-changelog.py ${{ github.ref_name }} > /tmp/changelog.md
run: cat CHANGELOG.rst | python extract-changelog.py ${{ github.ref_name }} > ${{ github.workspace }}/changelog.md

- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: ${{ github.workspace }}/changelog.md
2 changes: 1 addition & 1 deletion extract-changelog.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys

ver = sys.argv[1]
ver = sys.argv[1][1:]

line = sys.stdin.readline()
while not line.startswith("Version {}".format(ver)):
Expand Down

0 comments on commit 84d1534

Please sign in to comment.