diff --git a/bot-components/dune b/bot-components/dune index e4b8bd57..b05e55c2 100644 --- a/bot-components/dune +++ b/bot-components/dune @@ -9,23 +9,19 @@ (rule (targets schema.json) - (deps .graphqlconfig (universe)) + (deps + (:input .graphqlconfig.in) + .github-token + (universe)) (action (progn + (with-stdout-to + .graphqlconfig + (run sed "s/%%TOKEN%%/%{read:.github-token}/" %{input})) (run graphql get-schema) (run sed -i "s/\"timestamp\": \".*\"/\"timestamp\": \"\"/" %{targets}))) (mode promote)) -(rule - (targets .graphqlconfig) - (deps - (:input .graphqlconfig.in) - .github-token) - (action - (with-stdout-to - %{targets} - (run sed "s/%%TOKEN%%/%{read:.github-token}/" %{input})))) - (env (dev (flags :standard -w -9)))