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
0 commit comments