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/')
132
131
runs-on : ubuntu-latest
133
132
steps :
134
133
- name : Checkout
135
134
uses : actions/checkout@v4
135
+ with :
136
+ fetch-depth : 0
137
+ - name : Install Python
138
+ uses : actions/setup-python@v5
139
+ - name : Install towncrier
140
+ run : pip install towncrier==24.8.0
136
141
- name : Install pandoc
137
142
run : |
138
143
sudo apt-get install -y pandoc
144
+ - name : Compile Release Notes Draft
145
+ if : ${{ !contains(github.ref, 'refs/tags/') }}
146
+ run : |
147
+ set -e
148
+ version=$(python ./tools/get-version.py)
149
+ towncrier build --draft --version "${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