mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-31 09:22:15 +08:00 
			
		
		
		
	use alternative method to escape newlines
This commit is contained in:
		
							
								
								
									
										7
									
								
								.github/workflows/vendor.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/vendor.yml
									
									
									
									
										vendored
									
									
								
							| @@ -44,17 +44,14 @@ jobs: | |||||||
|             } |             } | ||||||
|           } |           } | ||||||
|           Set-GHVariable -Name LIST_UPDATED -Value $listUpdated.Trim(', ') |           Set-GHVariable -Name LIST_UPDATED -Value $listUpdated.Trim(', ') | ||||||
|           $updateMessage = $updateMessage.Replace("%", "%25") |           Set-GHVariable -Name UPDATE_MESSAGE -Value $updateMessage.Replace("%", "%25").Replace("`r", "%0D").Replace("`n", "%0A") | ||||||
|           $updateMessage = $updateMessage.Replace("`r", "%0d") |  | ||||||
|           $updateMessage = $updateMessage.Replace("`n", "%0a") |  | ||||||
|           Write-Host "::set-output name=updateMessage::$updateMessage" |  | ||||||
|  |  | ||||||
|     - uses: peter-evans/create-pull-request@v4 |     - uses: peter-evans/create-pull-request@v4 | ||||||
|       with: |       with: | ||||||
|         title: 'Updates to `${{ env.COUNT_UPDATED }}` vendored dependencies' |         title: 'Updates to `${{ env.COUNT_UPDATED }}` vendored dependencies' | ||||||
|         body: | |         body: | | ||||||
|           ### Automatically updated `${{ env.COUNT_UPDATED }}` dependencies: |           ### Automatically updated `${{ env.COUNT_UPDATED }}` dependencies: | ||||||
|           ${{ steps.make-changes.outputs.updateMessage }} |           ${{ env.UPDATE_MESSAGE }} | ||||||
|           --- |           --- | ||||||
|           Please verify and then **Merge** the pull request to update. |           Please verify and then **Merge** the pull request to update. | ||||||
|         commit-message: 'Update vendored dependencies (${{ env.LIST_UPDATED }})' |         commit-message: 'Update vendored dependencies (${{ env.LIST_UPDATED }})' | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user