Skip to content

Commit 2510303

Browse files
Parse for changelog info to add to release.
1 parent 653d5dc commit 2510303

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/development.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
steps:
5454
- uses: actions/checkout@v2
5555
- name: Set up Python ${{matrix.py_ver}}
56-
uses: actions/setup-python@v2
56+
uses: actions/setup-python@v4
5757
with:
5858
python-version: ${{matrix.py_ver}}
5959
- name: Install dependencies
@@ -124,10 +124,18 @@ jobs:
124124
release_upload_url: ${{steps.create_gh_release.outputs.upload_url}}
125125
steps:
126126
- uses: actions/checkout@v2
127+
- name: Set up Python ${{matrix.py_ver}}
128+
uses: actions/setup-python@v4
129+
with:
130+
python-version: ${{matrix.py_ver}}
127131
- name: Determine package version
128132
run: |
129133
DJ_VERSION=$(grep -oP '\d+\.\d+\.\d+' datajoint/version.py)
134+
RELEASE_BODY=$(python -c \
135+
'print(open("./CHANGELOG.md").read().split("\n\n")[1].split("\n", 1)[1])' \
136+
)
130137
echo "DJ_VERSION=${DJ_VERSION}" >> $GITHUB_ENV
138+
echo "RELEASE_BODY=${RELEASE_BODY}" >> $GITHUB_ENV
131139
- name: Create GH release
132140
id: create_gh_release
133141
uses: actions/create-release@v1
@@ -136,7 +144,7 @@ jobs:
136144
with:
137145
tag_name: ${{env.DJ_VERSION}}
138146
release_name: Release ${{env.DJ_VERSION}}
139-
body: ""
147+
body: ${{env.RELEASE_BODY}}
140148
prerelease: false
141149
draft: false
142150
- name: Fetch pip artifacts

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## Release notes
22

33
### 0.13.8 -- Sep 21, 2022
4+
* Add - New documentation structure based on markdown PR [#1052](https://github.com/datajoint/datajoint-python/pull/1052)
45
* Bugfix - Fix queries with backslashes ([#999](https://github.com/datajoint/datajoint-python/issues/999)) PR [#1052](https://github.com/datajoint/datajoint-python/pull/1052)
56

67
### 0.13.7 -- Jul 13, 2022

0 commit comments

Comments
 (0)