mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
17 lines
329 B
PowerShell
17 lines
329 B
PowerShell
if ($args.Length -ne 2) {
|
|
throw "Need two arguments"
|
|
}
|
|
|
|
$fs = Get-ChildItem -Path $args[0] -Filter $args[1]
|
|
|
|
$index = 0
|
|
foreach($f in $fs) {
|
|
|
|
$name = $f.Name
|
|
$path = $f.FullName
|
|
Write-Output "::set-output name=name_$index::$name"
|
|
Write-Output "::set-output name=path_$index::$path"
|
|
|
|
$index = $index + 1
|
|
}
|