File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -128,15 +128,27 @@ jobs:
128
128
129
129
prepare-release-notes :
130
130
name : Prepare Release Notes
131
- if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
131
+ needs : [lint]
132
132
runs-on : ubuntu-latest
133
133
steps :
134
134
- name : Checkout
135
135
uses : actions/checkout@v4
136
+ with :
137
+ fetch-depth : 0
138
+ - name : Install Python
139
+ uses : actions/setup-python@v5
140
+ - name : Install towncrier
141
+ run : pip install towncrier==24.8.0
136
142
- name : Install pandoc
137
143
run : |
138
144
sudo apt-get install -y pandoc
145
+ - name : Install pytest-asyncio
146
+ run : pip install .
147
+ - name : Compile Release Notes Draft
148
+ if : ${{ !contains(github.ref, 'refs/tags/') }}
149
+ run : towncrier build --draft --version "${{ needs.lint.outputs.version }}" > release-notes.rst
139
150
- name : Extract release notes from Git tag
151
+ if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
140
152
run : |
141
153
set -e
142
154
git for-each-ref github.ref --format='%(contents)' > release-notes.rst
You can’t perform that action at this time.
0 commit comments