Skip to content

Conversation

@pbchekin
Copy link
Contributor

No description provided.

@pbchekin pbchekin marked this pull request as ready for review November 19, 2024 23:23
@pbchekin pbchekin requested a review from anmyachev November 19, 2024 23:36
@pbchekin pbchekin enabled auto-merge (squash) November 19, 2024 23:47
@pbchekin pbchekin requested a review from gshimansky November 19, 2024 23:47
@gshimansky
Copy link
Contributor

Maybe remove directories older than 7 days so prevent its overfilling? Something like this (AI generated, untested):

# Specify the directory you want to clean up
$targetDirectory = "C:\"
$mask = "gh*"

# Specify the age threshold (e.g., 7 days)
$ageThreshold = 7

# Get all directories in the target directory
$directories = Get-ChildItem -Path $targetDirectory -Directory -Filter $mask

# Filter directories older than the threshold and delete them
$directories | Where-Object { $_.LastWriteTime -lt (Get-Date).AddDays(-$ageThreshold) } | Remove-Item -Recurse -Force

@pbchekin
Copy link
Contributor Author

Maybe remove directories older than 7 days so prevent its overfilling?

Yes, or better use ephemeral runners, which we planning soon.

@pbchekin pbchekin merged commit 413e738 into main Nov 20, 2024
5 checks passed
@pbchekin pbchekin deleted the build-test-windows branch November 20, 2024 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants