summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-03-29 21:26:56 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2025-03-29 21:26:56 +0100
commit3bbfb4d9330f8648721256418072bb3d625ff539 (patch)
tree8e7794a8b651a3284acc6ad024b6b5333443bb68
parentf3dbad3df9f8c9c1aca873d74a34c6f9169133b0 (diff)
Fix artifact work path to be again relative to checkout dir
Changelog: Fix copying of artifact to appropriate working directory
-rw-r--r--src/Job.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Job.hs b/src/Job.hs
index f147421..a9effba 100644
--- a/src/Job.hs
+++ b/src/Job.hs
@@ -343,10 +343,10 @@ runJob job uses checkoutPath jdir = do
let target = adir </> T.unpack tname </> takeFileName path
liftIO $ do
createDirectoryIfMissing True $ takeDirectory target
- copyFile (checkoutPath </> path) target
+ copyFile path target
return $ ArtifactOutput
{ aoutName = name
- , aoutWorkPath = path
+ , aoutWorkPath = makeRelative checkoutPath path
, aoutStorePath = target
}