Skip to content

Commit e4ed252

Browse files
committed
feat: version.bb git stages files
1 parent 6aeb9a3 commit e4ed252

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

version.bb

+5-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838
(-> file
3939
slurp
4040
(.replace old-str new-str)
41-
(->> (spit file))))
41+
(->> (spit file)))
42+
(clojure.java.shell/sh "git" "add" (str file))
43+
nil)
4244

4345
(def current-version-parsed
4446
(-> "project.clj" slurp read-string nnext first parse-version))
@@ -55,8 +57,6 @@
5557
(reduce (fn [a [path val]] (assoc-in a path val)) {})
5658
(def versions))
5759

58-
(println :versions versions)
59-
6060
(replace-in-file "project.clj"
6161
(-> versions :current :raw)
6262
(-> versions :next :raw))
@@ -72,3 +72,5 @@
7272
(replace-in-file "README.md"
7373
(-> versions :current :snapshot)
7474
(-> versions :bump :snapshot)))
75+
76+
(println :versions versions)

0 commit comments

Comments
 (0)