File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed
Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -149,11 +149,33 @@ jobs:
149149 permissions :
150150 contents : write
151151
152+ env :
153+ TAG_NAME : " ${{ github.ref_name }}"
154+
152155 steps :
156+ - uses : " actions/checkout@v4"
157+ with :
158+ fetch-depth : 0
159+ path : " pulp_python"
160+
161+ - uses : " actions/setup-python@v5"
162+ with :
163+ python-version : " 3.11"
164+
165+ - name : " Install towncrier"
166+ run : |
167+ pip install towncrier
168+
169+ - name : " Get release notes"
170+ id : get_release_notes
171+ run : |
172+ NOTES=$(towncrier build --draft --version $TAG_NAME)
173+ echo "body<<EOF" >> $GITHUB_OUTPUT
174+ echo "$NOTES" >> $GITHUB_OUTPUT
175+ echo "EOF" >> $GITHUB_OUTPUT
176+
153177 - name : " Create release on GitHub"
154178 uses : " actions/github-script@v7"
155- env :
156- TAG_NAME : " ${{ github.ref_name }}"
157179 with :
158180 script : |
159181 const { TAG_NAME } = process.env;
@@ -162,5 +184,6 @@ jobs:
162184 owner: context.repo.owner,
163185 repo: context.repo.repo,
164186 tag_name: TAG_NAME,
187+ body: `${{ steps.get_release_notes.outputs.body }}`,
165188 make_latest: "legacy",
166189 });
You can’t perform that action at this time.
0 commit comments