mirror of
				https://github.com/ajnart/homarr.git
				synced 2025-10-31 18:46:23 +01:00 
			
		
		
		
	💚 Continue on error and update comment feature
This commit is contained in:
		
							
								
								
									
										29
									
								
								.github/workflows/nextjs_bundle_analysis.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										29
									
								
								.github/workflows/nextjs_bundle_analysis.yml
									
									
									
									
										vendored
									
									
								
							| @@ -74,6 +74,7 @@ jobs: | |||||||
|  |  | ||||||
|       - name: Download base branch bundle stats |       - name: Download base branch bundle stats | ||||||
|         uses: dawidd6/action-download-artifact@v2 |         uses: dawidd6/action-download-artifact@v2 | ||||||
|  |         continue-on-error: true | ||||||
|         if: success() && github.event.number |         if: success() && github.event.number | ||||||
|         with: |         with: | ||||||
|           workflow: nextjs_bundle_analysis.yml |           workflow: nextjs_bundle_analysis.yml | ||||||
| @@ -106,26 +107,8 @@ jobs: | |||||||
|           echo "$(cat .next/analyze/__bundle_analysis_comment.txt)" >> $GITHUB_OUTPUT |           echo "$(cat .next/analyze/__bundle_analysis_comment.txt)" >> $GITHUB_OUTPUT | ||||||
|           echo EOF >> $GITHUB_OUTPUT |           echo EOF >> $GITHUB_OUTPUT | ||||||
|  |  | ||||||
|       - name: Find Comment |     - name: Comment | ||||||
|         uses: peter-evans/find-comment@v2 |       uses: marocchino/sticky-pull-request-comment@v2 | ||||||
|         if: success() && github.event.number |       with: | ||||||
|         id: fc |         header: next-touched-pages | ||||||
|         with: |         message: ${{ steps.get-comment-body.outputs.body }} | ||||||
|           issue-number: ${{ github.event.number }} |  | ||||||
|           body-includes: '<!-- __NEXTJS_BUNDLE -->' |  | ||||||
|  |  | ||||||
|       - name: Create Comment |  | ||||||
|         uses: peter-evans/create-or-update-comment@v2 |  | ||||||
|         if: success() && github.event.number && steps.fc.outputs.comment-id == 0 |  | ||||||
|         with: |  | ||||||
|           issue-number: ${{ github.event.number }} |  | ||||||
|           body: ${{ steps.get-comment-body.outputs.body }} |  | ||||||
|  |  | ||||||
|       - name: Update Comment |  | ||||||
|         uses: peter-evans/create-or-update-comment@v2 |  | ||||||
|         if: success() && github.event.number && steps.fc.outputs.comment-id != 0 |  | ||||||
|         with: |  | ||||||
|           issue-number: ${{ github.event.number }} |  | ||||||
|           body: ${{ steps.get-comment-body.outputs.body }} |  | ||||||
|           comment-id: ${{ steps.fc.outputs.comment-id }} |  | ||||||
|           edit-mode: replace |  | ||||||
		Reference in New Issue
	
	Block a user