mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Append generated changelog to docs
This commit is contained in:
		
							
								
								
									
										5
									
								
								.github/release-drafter.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/release-drafter.yml
									
									
									
									
										vendored
									
									
								
							| @@ -28,9 +28,10 @@ include-labels: | |||||||
| replacers: # Changes "Feature: Update checker" to "Update checker" | replacers: # Changes "Feature: Update checker" to "Update checker" | ||||||
|   - search: '/Feature:|Feat:|\[feature\]/gi' |   - search: '/Feature:|Feat:|\[feature\]/gi' | ||||||
|     replace: '' |     replace: '' | ||||||
| change-template: '- $TITLE @$AUTHOR (#$NUMBER)' | category-template: '### $TITLE' | ||||||
|  | change-template: '- $TITLE [@$AUTHOR](https://github.com/$AUTHOR) ([#$NUMBER]($URL))' | ||||||
| change-title-escapes: '\<*_&#@' | change-title-escapes: '\<*_&#@' | ||||||
| template: | | template: | | ||||||
|   # Changelog |   ## paperless-ngx $RESOLVED_VERSION | ||||||
|  |  | ||||||
|   $CHANGES |   $CHANGES | ||||||
|   | |||||||
							
								
								
									
										19
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										19
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -381,3 +381,22 @@ jobs: | |||||||
|           asset_path: ./paperless-ngx.tar.xz |           asset_path: ./paperless-ngx.tar.xz | ||||||
|           asset_name: paperless-ngx-${{ steps.get_version.outputs.version }}.tar.xz |           asset_name: paperless-ngx-${{ steps.get_version.outputs.version }}.tar.xz | ||||||
|           asset_content_type: application/x-xz |           asset_content_type: application/x-xz | ||||||
|  |       - | ||||||
|  |         name: Checkout | ||||||
|  |         uses: actions/checkout@v3 | ||||||
|  |       - | ||||||
|  |         name: Append Changelog to docs | ||||||
|  |         id: append-Changelog | ||||||
|  |         working-directory: docs | ||||||
|  |         run: | | ||||||
|  |           git status | ||||||
|  |           git pull origin main | ||||||
|  |           git checkout main | ||||||
|  |           echo -e "# Changelog\n\n${{ steps.create-release.outputs.body }}\n" > changelog-new.md | ||||||
|  |           CURRENT_CHANGELOG=`tail --lines +2 changelog.md` | ||||||
|  |           echo -e "$CURRENT_CHANGELOG" >> changelog-new.md | ||||||
|  |           mv changelog-new.md changelog.md | ||||||
|  |           git config --global user.name "github-actions" | ||||||
|  |           git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||||||
|  |           git commit -am "Changelog ${{ steps.get_version.outputs.version }} - GHA" | ||||||
|  |           git push origin HEAD:main | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Quinn Casey
					Quinn Casey