Update script to babashka.curl
This commit is contained in:
parent
8770c42a82
commit
df08fbafb1
1 changed files with 4 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
(require '[cheshire.core :refer [generate-string]]
|
(require '[babashka.curl :as curl]
|
||||||
|
'[cheshire.core :refer [generate-string]]
|
||||||
'[clojure.java.io :as io]
|
'[clojure.java.io :as io]
|
||||||
'[clojure.java.shell :refer [sh]]
|
|
||||||
'[clojure.string :as str])
|
'[clojure.string :as str])
|
||||||
|
|
||||||
(def channel "#babashka_circleci_builds")
|
(def channel "#babashka_circleci_builds")
|
||||||
|
|
@ -13,7 +13,8 @@
|
||||||
(let [json (generate-string {:username "borkdude"
|
(let [json (generate-string {:username "borkdude"
|
||||||
:channel channel
|
:channel channel
|
||||||
:text text})]
|
:text text})]
|
||||||
(sh "curl" "-X" "POST" "-H" "Content-Type: application/json" "-d" json slack-hook-url))))
|
(curl/post slack-hook-url {:headers {"content-type" "application/json"}
|
||||||
|
:body json}))))
|
||||||
|
|
||||||
(def release-text (format "[%s - %s@%s]: https://%s-201467090-gh.circle-artifacts.com/0/release/babashka-%s-%s-amd64.zip"
|
(def release-text (format "[%s - %s@%s]: https://%s-201467090-gh.circle-artifacts.com/0/release/babashka-%s-%s-amd64.zip"
|
||||||
(System/getenv "BABASHKA_PLATFORM")
|
(System/getenv "BABASHKA_PLATFORM")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue