diff --git a/Makefile b/Makefile index 383f4f4..0baa2cb 100644 --- a/Makefile +++ b/Makefile @@ -95,8 +95,9 @@ clean: # CI/CD Targets ci-version: - @VERSION=$$(sed -n "s/^-- version: //p" inc/meta/meta.header.lua | head -n 1 | tr -d "[:space:]"); \ + @VERSION=$$(sed -n "s/^-- version: //p" inc-meta-meta.header.lua | head -n 1 | tr -d "[:space:]"); \ BRANCH=$${CI_COMMIT_BRANCH:-$${WOODPECKER_BRANCH}}; \ + BRANCH=$$(echo "$$BRANCH" | tr '/' '-'); \ if [ "$$BRANCH" != "main" ] && [ "$$BRANCH" != "master" ] && [ -n "$$BRANCH" ]; then \ VERSION=dev-$$VERSION-$$BRANCH; \ fi; \