@@ -131,36 +131,26 @@ jobs:
131131 fi
132132 done
133133
134- git add .
135- git commit -m "chore: release ${version}"
136- git show -s
137-
138- echo "正在生成 Changelog.md ……"
139- if [ -f "Changelog.md" ]; then
134+ echo "正在生成 CHANGELOG.md ……"
135+ if [ -f "CHANGELOG.md" ]; then
140136 git cliff --use-branch-tags --unreleased --tag "${version}" \
141137 --github-repo "${GITHUB_REPOSITORY}" \
142138 --github-token "${{ secrets.GITHUB_TOKEN }}" \
143139 --config keepachangelog \
144- --prepend "Changelog .md"
140+ --prepend "CHANGELOG .md"
145141 else
146142 git cliff --use-branch-tags --unreleased --tag "${version}" \
147143 --github-repo "${GITHUB_REPOSITORY}" \
148144 --github-token "${{ secrets.GITHUB_TOKEN }}" \
149145 --config keepachangelog \
150- -o "Changelog .md"
146+ -o "CHANGELOG .md"
151147 fi
152148
153149 git cliff --use-branch-tags --unreleased --tag "${version}" \
154150 --github-repo "${GITHUB_REPOSITORY}" \
155151 --github-token "${{ secrets.GITHUB_TOKEN }}" \
156152 --config keepachangelog \
157- -o "../Changelog.md"
158-
159- git add .
160- git commit -m "docs: Update Changelog.md"
161- git show -s
162-
163- echo -e "\n"
153+ -o "../CHANGELOG.md"
164154
165155 if [ -d "debian" ]; then
166156 echo "为Debian生成版本更新……"
@@ -180,12 +170,6 @@ jobs:
180170 echo "${new_entry}" > debian/changelog.tmp
181171 cat debian/changelog >> debian/changelog.tmp
182172 mv debian/changelog.tmp debian/changelog
183-
184- git add .
185- git commit -m "chore(debian): New release ${version}"
186- git show -s
187-
188- echo -e "\n"
189173 fi
190174
191175 if [ -f "archlinux/PKGBUILD" ]; then
@@ -196,12 +180,6 @@ jobs:
196180
197181 # 重置 pkgrel 为 1
198182 sed -i "s/^pkgrel=.*/pkgrel=1/" archlinux/PKGBUILD
199-
200- git add .
201- git commit -m "chore(archlinux): New release ${version}"
202- git show -s
203-
204- echo -e "\n"
205183 fi
206184
207185 if [ -f "rpm/${repo_name}.spec" ]; then
@@ -212,21 +190,21 @@ jobs:
212190
213191 # 重置 Release 为 1
214192 sed -i "s/^Release:.*/Release: 1/" rpm/"${repo_name}".spec
215-
216- git add .
217- git commit -m "chore(rpm): New release ${version}"
218- git show -s
219-
220- echo -e "\n"
221193 fi
194+
195+ git add .
196+ git commit -m "chore(rpm): New release ${version}
197+
198+ Log:"
199+ git show -s
222200
223201 - name : 创建PR
224202 id : cpr
225203 uses : peter-evans/create-pull-request@v7
226204 with :
227205 token : ${{ steps.auth.outputs.token }}
228206 title : " Release ${{ steps.validate_version.outputs.version }}"
229- body-path : " ../Changelog .md"
207+ body-path : " ../CHANGELOG .md"
230208 branch : " release-${{ steps.validate_version.outputs.version }}"
231209
232210 - name : Check outputs
0 commit comments