From 8d02447620013d85dceeb785ea922aa00dbe8f1f Mon Sep 17 00:00:00 2001 From: Dmitry Kirdyashkin Date: Sun, 23 Jul 2023 14:58:28 +0300 Subject: [PATCH] v1.0.0 --- lib | 2 ++ module.json.template | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib b/lib index 3268017..18a6757 100644 --- a/lib +++ b/lib @@ -8,6 +8,8 @@ function create-archive(){ } function set-variables(){ + RELEASE=$(echo $DRONE_COMMIT_MESSAGE | tr -d '\n')-$DRONE_BRANCH + echo "$RELEASE" envsubst < module.json.template > ./module.json cat ./module.json } diff --git a/module.json.template b/module.json.template index c9682a3..94d98c3 100644 --- a/module.json.template +++ b/module.json.template @@ -8,7 +8,7 @@ "name": "leego neit" } ], - "version": "${DRONE_COMMIT_MESSAGE}-${DRONE_BRANCH}", + "version": "$RELEASE", "minimumCoreVersion": "9", "compatibility": { "minimum": "9", @@ -16,8 +16,8 @@ "maximum": "10" }, "url": "${DRONE_REPO_LINK}", - "manifest": "${DRONE_REPO_LINK}/releases/download/${DRONE_COMMIT_MESSAGE}-${DRONE_BRANCH}/module.json", - "download": "${DRONE_REPO_LINK}/releases/download/${DRONE_COMMIT_MESSAGE}-${DRONE_BRANCH}/module.zip", + "manifest": "${DRONE_REPO_LINK}/releases/download/$RELEASE/module.json", + "download": "${DRONE_REPO_LINK}/releases/download/$RELEASE/module.zip", "packs": [ { "name": "sc-items",