mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
Add step with download custom repository
This commit is contained in:
@@ -6,6 +6,13 @@ jobs:
|
|||||||
- group: Image Generation Variables
|
- group: Image Generation Variables
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- pwsh: |
|
||||||
|
Remove-Item -path './*' -Recurse -Force
|
||||||
|
Write-Host "Download $(BRANCH_NAME) branch from $(IMAGE_GEN_REPO_URI)"
|
||||||
|
git clone $(IMAGE_GEN_REPO_URI) . -b $(BRANCH_NAME) --single-branch --depth 1
|
||||||
|
displayName: 'Download custom repository'
|
||||||
|
condition: and(ne(variables['BRANCH_NAME'], ''), ne(variables['IMAGE_GEN_REPO_URI'], ''))
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: 'Build VM'
|
displayName: 'Build VM'
|
||||||
inputs:
|
inputs:
|
||||||
|
|||||||
Reference in New Issue
Block a user