@@ -143,18 +143,42 @@ jobs:
143143 echo "CHANGELOG_OUTPUT<<EOF" >> $GITHUB_ENV
144144 echo "$(cat generator_output)" >> $GITHUB_ENV
145145 echo "EOF" >> $GITHUB_ENV
146+
147+ - name : Archive markdown
148+ uses : actions/upload-artifact@v4
149+ with :
150+ name : changelogs
151+ path : generator_output
152+
153+ - name : Check out wiki
154+ uses : actions/checkout@v4
155+ with :
156+ repository : ' ${{ github.repository }}.wiki'
157+ path : ' wiki'
158+
159+ - name : Push changelog to wiki
160+ working-directory : ./wiki
161+ run : |
162+ echo "$CHANGELOG" > "Changelog-${BUILD_TAG}.md"
163+ git config --local user.email "github-actions[bot]@users.noreply.github.com"
164+ git config --local user.name "github-actions[bot]"
165+ git add "Changelog-${BUILD_TAG}.md"
166+ if ! git diff --cached --quiet; then
167+ git commit -m "Add changelog for ${BUILD_TAG}"
168+ git push
169+ else
170+ echo "No changes to commit for ${BUILD_TAG}"
171+ fi
172+ env :
173+ CHANGELOG : ${{ env.CHANGELOG_OUTPUT }}
174+ BUILD_TAG : ${{ env.BUILD_TAG }}
175+
146176 - name : Create Release
147177 id : create_release
148178 uses : zendesk/action-gh-release@v2
149179 with :
150180 tag_name : ${{ env.BUILD_TAG }}
151181 body : |
152- ${{ env.CHANGELOG_OUTPUT }}
182+ The full changelog for this release is available at: https://github.com/ ${{ github.repository }}/wiki/Changelog-${{ env.BUILD_TAG }}
153183 env :
154184 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
155-
156- - name : Archive markdown
157- uses : actions/upload-artifact@v4
158- with :
159- name : changelogs
160- path : generator_output
0 commit comments