From bdb27e7774ba5456cc499dc5d4fa734847ccb48b Mon Sep 17 00:00:00 2001 From: Rahul De Date: Sun, 13 Oct 2024 12:24:45 +0100 Subject: [PATCH] [sha] add commit SHA to describe --- src/babashka/main.clj | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/babashka/main.clj b/src/babashka/main.clj index d4d012e0..4338bcf5 100644 --- a/src/babashka/main.clj +++ b/src/babashka/main.clj @@ -110,6 +110,11 @@ (def version common/version) +(def build-commit-sha + (or (System/getenv "CIRCLE_SHA1") + (System/getenv "APPVEYOR_REPO_COMMIT") + (System/getenv "CIRRUS_BASE_SHA"))) + (defn parse-version [version] (mapv #(Integer/parseInt %) (-> version @@ -261,6 +266,7 @@ Use bb run --help to show this help output. (format (str/trim " {:babashka/version \"%s\" + :babashka/build-sha %s :feature/csv %s :feature/java-nio %s :feature/java-time %s @@ -281,6 +287,7 @@ Use bb run --help to show this help output. :feature/logging %s :feature/priority-map %s}") version + build-commit-sha features/csv? features/java-nio? features/java-time?