mirror of
https://github.com/actions/runner-images.git
synced 2026-01-08 03:07:32 +08:00
Fix comments
This commit is contained in:
@@ -3,15 +3,16 @@ jobs:
|
|||||||
displayName: Image Generation (${{ parameters.image_label }})
|
displayName: Image Generation (${{ parameters.image_label }})
|
||||||
timeoutInMinutes: 720
|
timeoutInMinutes: 720
|
||||||
pool:
|
pool:
|
||||||
name: Mac-Cloud V2 Image Generation
|
name: Mac-Cloud Image Generation
|
||||||
variables:
|
variables:
|
||||||
- group: Mac-Cloud Image Generation
|
- group: Mac-Cloud Image Generation
|
||||||
- group: Mac-Cloud Image Generation Key Vault
|
- group: Mac-Cloud Image Generation Key Vault
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- pwsh: |
|
- pwsh: |
|
||||||
$validСontributor = ${$env:CONTRIBUTOR_ALLOWLIST}.Split(",").Trim() | Where-Object { $_ -eq $env:BUILD_SOURCEVERSIONAUTHOR } `
|
$allowedContributors = $env:CONTRIBUTOR_ALLOWLIST.Split(",").Trim()
|
||||||
| Select-Object -First 1
|
$validСontributor = $allowedContributors | Where-Object { $_ -eq $env:BUILD_SOURCEVERSIONAUTHOR } `
|
||||||
|
| Select-Object -First 1
|
||||||
|
|
||||||
if (-not $validСontributor) {
|
if (-not $validСontributor) {
|
||||||
Write-Host "Failed to start this build. $env:BUILD_SOURCEVERSIONAUTHOR is an unknown contributor"
|
Write-Host "Failed to start this build. $env:BUILD_SOURCEVERSIONAUTHOR is an unknown contributor"
|
||||||
|
|||||||
Reference in New Issue
Block a user