From f4153916e5f56969f6eb73f1f347546e94e75711 Mon Sep 17 00:00:00 2001 From: William Petit Date: Wed, 6 Dec 2023 15:20:51 +0100 Subject: [PATCH] feat(gitea): allow passing multiline body/attachments variables --- tasks/gitea.mk | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tasks/gitea.mk b/tasks/gitea.mk index c942e91..d6717ad 100644 --- a/tasks/gitea.mk +++ b/tasks/gitea.mk @@ -9,6 +9,16 @@ MKT_GITEA_RELEASE_ATTACHMENTS ?= MKT_GITEA_RELEASE_USERNAME ?= MKT_GITEA_RELEASE_PASSWORD ?= +define GITEA_RELEASE_BODY +$(MKT_GITEA_RELEASE_BODY) +endef +export GITEA_RELEASE_BODY + +define GITEA_RELEASE_ATTACHMENTS +$(MKT_GITEA_RELEASE_ATTACHMENTS) +endef +export GITEA_RELEASE_ATTACHMENTS + mkt-gitea-release: tools/gitea-release/bin/gitea-release.sh GITEA_RELEASE_PROJECT="$(MKT_GITEA_RELEASE_PROJECT)" \ GITEA_RELEASE_ORG="$(MKT_GITEA_RELEASE_ORG)" \ @@ -17,8 +27,6 @@ mkt-gitea-release: tools/gitea-release/bin/gitea-release.sh GITEA_RELEASE_NAME="$(MKT_GITEA_RELEASE_VERSION)" \ GITEA_RELEASE_COMMITISH_TARGET="$(MKT_GITEA_RELEASE_COMMIT_TARGET)" \ GITEA_RELEASE_IS_DRAFT="$(MKT_GITEA_RELEASE_IS_DRAFT)" \ - GITEA_RELEASE_BODY="$(MKT_GITEA_RELEASE_BODY)" \ - GITEA_RELEASE_ATTACHMENTS="$(MKT_GITEA_RELEASE_ATTACHMENTS)" \ GITEA_RELEASE_USERNAME="$(MKT_GITEA_RELEASE_USERNAME)" \ GITEA_RELEASE_PASSWORD="$(MKT_GITEA_RELEASE_PASSWORD)" \ tools/gitea-release/bin/gitea-release.sh