mirror of https://github.com/MISP/misp-modules
				
				
				
			Create changelog and release automatically
							parent
							
								
									7bf3a9f64a
								
							
						
					
					
						commit
						c911597eb4
					
				|  | @ -8,6 +8,41 @@ on: | |||
| 
 | ||||
| jobs: | ||||
| 
 | ||||
|   relase: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
| 
 | ||||
|       - name: Checkout repository | ||||
|         uses: actions/checkout@v4 | ||||
|         with: | ||||
|           fetch-depth: 0 | ||||
| 
 | ||||
|       - name: Get previous tag | ||||
|         id: previousTag | ||||
|         run: | | ||||
|           name=$(git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | tail -2 | head -1) | ||||
|           echo "previousTag: $name" | ||||
|           echo "previousTag=$name" >> $GITHUB_ENV | ||||
| 
 | ||||
|       - name: Update changelog | ||||
|         id: changelog | ||||
|         uses: requarks/changelog-action@v1 | ||||
|         with: | ||||
|           token: ${{ github.token }} | ||||
|           fromTag: ${{ github.ref_name }} | ||||
|           toTag: ${{ env.previousTag }} | ||||
|           writeToFile: false | ||||
| 
 | ||||
|       - name: Create release | ||||
|         uses: ncipollo/release-action@v1.12.0 | ||||
|         with: | ||||
|           allowUpdates: true | ||||
|           draft: false | ||||
|           makeLatest: true | ||||
|           name: ${{ github.ref_name }} | ||||
|           body: ${{ steps.changelog.outputs.changes }} | ||||
|           token: ${{ secrets.GITHUB_TOKEN }} | ||||
| 
 | ||||
|   docs: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|  |  | |||
							
								
								
									
										4602
									
								
								ChangeLog.md
								
								
								
								
							
							
						
						
									
										4602
									
								
								ChangeLog.md
								
								
								
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Loading…
	
		Reference in New Issue
	
	 Stefano Ortolani
						Stefano Ortolani