v1.0.0
continuous-integration/drone/push Build is failing Details

pull/4/head
Dmitry Kirdyashkin 2023-07-23 14:58:28 +03:00
parent d7206ddc1b
commit 8d02447620
2 changed files with 5 additions and 3 deletions

2
lib
View File

@ -8,6 +8,8 @@ function create-archive(){
} }
function set-variables(){ function set-variables(){
RELEASE=$(echo $DRONE_COMMIT_MESSAGE | tr -d '\n')-$DRONE_BRANCH
echo "$RELEASE"
envsubst < module.json.template > ./module.json envsubst < module.json.template > ./module.json
cat ./module.json cat ./module.json
} }

View File

@ -8,7 +8,7 @@
"name": "leego neit" "name": "leego neit"
} }
], ],
"version": "${DRONE_COMMIT_MESSAGE}-${DRONE_BRANCH}", "version": "$RELEASE",
"minimumCoreVersion": "9", "minimumCoreVersion": "9",
"compatibility": { "compatibility": {
"minimum": "9", "minimum": "9",
@ -16,8 +16,8 @@
"maximum": "10" "maximum": "10"
}, },
"url": "${DRONE_REPO_LINK}", "url": "${DRONE_REPO_LINK}",
"manifest": "${DRONE_REPO_LINK}/releases/download/${DRONE_COMMIT_MESSAGE}-${DRONE_BRANCH}/module.json", "manifest": "${DRONE_REPO_LINK}/releases/download/$RELEASE/module.json",
"download": "${DRONE_REPO_LINK}/releases/download/${DRONE_COMMIT_MESSAGE}-${DRONE_BRANCH}/module.zip", "download": "${DRONE_REPO_LINK}/releases/download/$RELEASE/module.zip",
"packs": [ "packs": [
{ {
"name": "sc-items", "name": "sc-items",