Skip to content

Commit

Permalink
publish: default Etaoin branch is master, not main
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
lread committed Aug 14, 2024
1 parent 9ffe172 commit f484931
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion script/ci_publish.clj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[clojure.string :as str]
[lread.status-line :as status]))

(def ^:private changelog-url (format "https://github.com/%s/blob/main/CHANGELOG.adoc" (build-shared/lib-github-coords)))
(def ^:private changelog-url (format "https://github.com/%s/blob/master/CHANGELOG.adoc" (build-shared/lib-github-coords)))

(defn- assert-on-ci []
(when (not (System/getenv "CI"))
Expand Down
4 changes: 2 additions & 2 deletions script/publish.clj
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
(let [current-branch (->> (t/shell {:out :string} "git rev-parse --abbrev-ref HEAD")
:out
string/trim)]
(= "main" current-branch)))
(= "master" current-branch)))

(defn- uncommitted-code? []
(-> (t/shell {:out :string}
Expand All @@ -69,7 +69,7 @@
(and (zero? exit) (-> out string/trim seq))))

(defn- commit-matches-default-head? []
(let [repo-head-sha (-> (t/shell {:out :string} (format "git ls-remote https://github.com/%s.git main" (build-shared/lib-github-coords)))
(let [repo-head-sha (-> (t/shell {:out :string} (format "git ls-remote https://github.com/%s.git master" (build-shared/lib-github-coords)))
:out
(string/split #"\s+")
first)
Expand Down

0 comments on commit f484931

Please sign in to comment.