Ash258 / Scoop-GithubActions

Deprecated. Use https://github.com/shovel-org/GithubActions
MIT License
25 stars 18 forks source link

Do not support bucket without nested `bucket` folder #31

Closed Ash258 closed 5 years ago

Ash258 commented 5 years ago

This will save me lots of checks and my sanity.

If bucket do not have nested bucket folder fail and create new issue about this

Ash258 commented 5 years ago

Entrypoint.ps1

if (-not (Test-Path $BUCKET_ROOT\bucket)) {
    $js = Invoke-GithubRequest ".../issues/" | Select-Object -ExpandProperty Content | ConvertFrom-Json
    $js | Where-Object { $_.Author -eq 'Me' -and $_.Title -eq 'Use nested bucket' }
    if (-not $js) { New-Issue }
}