Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-28T00:49:24.645Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

exit-ci-if-dev-drive-is-full.ps1

23 lines · 636 B · text
1param (
2    [Parameter(Mandatory = $true)]
3    [int]$MAX_SIZE_IN_GB
4)
5
6$ErrorActionPreference = "Stop"
7$PSNativeCommandUseErrorActionPreference = $true
8$ProgressPreference = "SilentlyContinue"
9
10if (-Not (Test-Path -Path "target")) {
11    Write-Host "target directory does not exist yet"
12    exit 0
13}
14
15$current_size_gb = (Get-ChildItem -Recurse -Force -File -Path "target" | Measure-Object -Property Length -Sum).Sum / 1GB
16
17Write-Host "target directory size: ${current_size_gb}GB. max size: ${MAX_SIZE_IN_GB}GB"
18
19if ($current_size_gb -gt $MAX_SIZE_IN_GB) {
20    Write-Host "Dev drive is almost full, increase the size first!"
21    exit 1
22}
23
Served at tenant.openagents/omega Member data and write actions are omitted.