Skip to content

Commit

Permalink
Merge pull request #64 from jtcoolen/dune-ignore-rule
Browse files Browse the repository at this point in the history
Add (mode promote) to rule in dune file.
  • Loading branch information
jtcoolen authored Jul 9, 2020
2 parents 4ede970 + f8abe0e commit c525526
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions bot-components/dune
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

0 comments on commit c525526

Please sign in to comment.