mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-11-01 01:42:17 +08:00 
			
		
		
		
	stop steps if no new versions detected
This commit is contained in:
		
							
								
								
									
										2
									
								
								.github/workflows/vendor.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/vendor.yml
									
									
									
									
										vendored
									
									
								
							| @@ -43,10 +43,12 @@ jobs: | |||||||
|               $updateMessage += "| **$($s.name)** | $oldVersion | **$($s.version)** |`n" |               $updateMessage += "| **$($s.name)** | $oldVersion | **$($s.version)** |`n" | ||||||
|             } |             } | ||||||
|           } |           } | ||||||
|  |           if ($count -eq 0) { return } | ||||||
|           Set-GHVariable -Name LIST_UPDATED -Value $listUpdated.Trim(', ') |           Set-GHVariable -Name LIST_UPDATED -Value $listUpdated.Trim(', ') | ||||||
|           echo "UPDATE_MESSAGE<<<EOF`n$updateMessage`n<EOF" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8 |           echo "UPDATE_MESSAGE<<<EOF`n$updateMessage`n<EOF" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8 | ||||||
|  |  | ||||||
|     - uses: peter-evans/create-pull-request@v4 |     - uses: peter-evans/create-pull-request@v4 | ||||||
|  |       if: env.COUNT_UPDATED > 0 | ||||||
|       with: |       with: | ||||||
|         title: 'Updates to `${{ env.COUNT_UPDATED }}` vendored dependencies' |         title: 'Updates to `${{ env.COUNT_UPDATED }}` vendored dependencies' | ||||||
|         body: | |         body: | | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user