ce7cb702218693d08ea6d83464d2457c9250027c

This commit is contained in:
ms2k 2026-11-12 20:46:28 +09:00
commit 34c5f8963c

View file

@ -0,0 +1,21 @@
open System
open System.IO
[ "source/archive"
"source/repository"
"source/tmp"
"toolchain"
"toolchain/tmp"
"state/cache-tmp"
"output/go-cache"
"output/bin"
"output/layout"
"output/result"
"output/tmp"
"output/publish-tmp"
"output/cache-tmp" ]
|> List.iter (fun path -> Directory.CreateDirectory(Path.Combine("/workspace", path)) |> ignore)
match Environment.GetEnvironmentVariable "POD_NAME" with
| value when String.IsNullOrWhiteSpace value -> invalidOp "pod name is unavailable"
| value -> File.WriteAllText("/workspace/.claim-name", $"{value}-workflow-workspace")