Destructure runtime in the run-fn
change vpryvkrrnyklnyrzxnlpvronyztyqxqv
commit abc2e96e542e17bce64a0cb86c94deb6a13afc55
author Alpha Chen <alpha@kejadlen.dev>
date
parent nqynspvl
diff --git a/.quire/ci.fnl b/.quire/ci.fnl
index 33e2b19..9938476 100644
--- a/.quire/ci.fnl
+++ b/.quire/ci.fnl
@@ -1,12 +1,11 @@
 (local {: job} (require :quire.ci))
 (local {: mirror} (require :quire.stdlib))
 
-; (job :test [:quire/push] (fn [] (runtime.sh [:cargo :test])))
+; (job :test [:quire/push] (fn [{: sh}] (sh [:cargo :test])))
 
 (job :mirror [:quire/push]
-     (fn []
-       (let [{: jobs : secret} (. (require :quire.ci) :runtime)
-             push (jobs :quire/push)]
+     (fn [{: jobs : secret}]
+       (let [push (jobs :quire/push)]
          (when (= push.ref :refs/heads/main)
            (mirror {:url "https://github.com/kejadlen/quire.git"
                     :auth-header (secret :github_auth_header)
@@ -14,4 +13,3 @@
                     :tag (.. :v (os.date "!%Y-%m-%d") "-" (push.sha:sub 1 8))
                     :git-dir push.git-dir
                     :refs [:refs/heads/main]})))))
-