summaryrefslogtreecommitdiff
path: root/src/Job
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-03-18 22:12:58 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2025-03-19 20:49:44 +0100
commit875ddfe8c9c42861d9c8876b14b95e05b4ae0fd9 (patch)
treecbf3b03741cb22160f25eecef330feff5ccfb6d3 /src/Job
parentcd1bc22732eb713a298c769d6f7bc02830d00296 (diff)
Accept glob pattern for artifact path
Diffstat (limited to 'src/Job')
-rw-r--r--src/Job/Types.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Job/Types.hs b/src/Job/Types.hs
index 4de9ef9..0f91b94 100644
--- a/src/Job/Types.hs
+++ b/src/Job/Types.hs
@@ -3,6 +3,7 @@ module Job.Types where
import Data.Text (Text)
import Data.Text qualified as T
+import System.FilePath.Glob
import System.Process
import Repo
@@ -16,7 +17,7 @@ data Job' d = Job
, jobContainingCheckout :: [ JobCheckout ]
, jobOtherCheckout :: [ ( JobRepo d, Maybe Text, JobCheckout ) ]
, jobRecipe :: [ CreateProcess ]
- , jobArtifacts :: [ ( ArtifactName, CreateProcess ) ]
+ , jobArtifacts :: [ ( ArtifactName, Pattern ) ]
, jobUses :: [ ( JobName, ArtifactName ) ]
}