mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-04 09:00:55 +08:00
Change step to PowerShell task
This commit is contained in:
@@ -6,12 +6,15 @@ jobs:
|
||||
- group: Image Generation Variables
|
||||
|
||||
steps:
|
||||
- powershell: |
|
||||
Remove-Item -path './*' -Recurse -Force
|
||||
Write-Host "Download $(CUSTOM_REPOSITORY_BRANCH) branch from $(CUSTOM_REPOSITORY_URL)"
|
||||
git clone $(CUSTOM_REPOSITORY_URL) . -b $(CUSTOM_REPOSITORY_BRANCH) --single-branch --depth 1
|
||||
- task: PowerShell@2
|
||||
displayName: 'Download custom repository'
|
||||
condition: and(ne(variables['CUSTOM_REPOSITORY_BRANCH'], ''), ne(variables['CUSTOM_REPOSITORY_URL'], ''))
|
||||
inputs:
|
||||
targetType: 'inline'
|
||||
script: |
|
||||
Remove-Item -path './*' -Recurse -Force
|
||||
Write-Host "Download $(CUSTOM_REPOSITORY_BRANCH) branch from $(CUSTOM_REPOSITORY_URL)"
|
||||
git clone $(CUSTOM_REPOSITORY_URL) . -b $(CUSTOM_REPOSITORY_BRANCH) --single-branch --depth 1
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: 'Build VM'
|
||||
|
||||
Reference in New Issue
Block a user