mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-30 05:22:06 +08:00
Merge pull request #536 from nikita-bykov/output-readme-step
Add readme output step to Image-generation CI
This commit is contained in:
@@ -55,6 +55,14 @@ jobs:
|
||||
-ImageName ${{ parameters.image_type }} `
|
||||
-AccessToken $(RELEASE_TARGET_TOKEN)
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: 'Output Readme file content'
|
||||
inputs:
|
||||
targetType: 'inline'
|
||||
script: |
|
||||
$docsPath = Get-ChildItem -Path "images" -Include ${{ parameters.image_readme_name }} -Recurse -Depth 1 | Select-Object -First 1
|
||||
Get-Content -Path $docsPath
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: 'Clean up resources'
|
||||
condition: always()
|
||||
|
||||
@@ -16,4 +16,5 @@ pr:
|
||||
jobs:
|
||||
- template: image-generation.yml
|
||||
parameters:
|
||||
image_type: ubuntu1604
|
||||
image_type: ubuntu1604
|
||||
image_readme_name: Ubuntu1604-README.md
|
||||
@@ -16,4 +16,5 @@ pr:
|
||||
jobs:
|
||||
- template: image-generation.yml
|
||||
parameters:
|
||||
image_type: ubuntu1804
|
||||
image_type: ubuntu1804
|
||||
image_readme_name: Ubuntu1804-README.md
|
||||
@@ -16,4 +16,5 @@ pr:
|
||||
jobs:
|
||||
- template: image-generation.yml
|
||||
parameters:
|
||||
image_type: Windows2016-Azure
|
||||
image_type: Windows2016-Azure
|
||||
image_readme_name: Windows2016-Readme.md
|
||||
@@ -16,4 +16,5 @@ pr:
|
||||
jobs:
|
||||
- template: image-generation.yml
|
||||
parameters:
|
||||
image_type: Windows2019-Azure
|
||||
image_type: Windows2019-Azure
|
||||
image_readme_name: Windows2016-Readme.md
|
||||
@@ -41,4 +41,4 @@ $Description = @"
|
||||
_Version:_ $bazelisk_version<br/>
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
Reference in New Issue
Block a user