This is an automated email from the ASF dual-hosted git repository. jacopoc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/ofbiz-tools.git
commit 9bfed35879350ab700e00aadac6ae45ac16f3552 Author: Jacopo Cappellato <[email protected]> AuthorDate: Thu Oct 22 18:27:15 2026 +0200 Check that the release tag exists before creating the release folder Before downloading, verify that the release<version> tag exists in both the ofbiz-framework and ofbiz-plugins GitHub repositories, and stop with an error message otherwise, so a mistyped or not yet pushed tag no longer leaves an empty release folder behind. Co-Authored-By: Claude Opus 5.5 <[email protected]> --- create-ofbiz-release.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/create-ofbiz-release.sh b/create-ofbiz-release.sh index 5dc3c95..5f4423c 100644 --- a/create-ofbiz-release.sh +++ b/create-ofbiz-release.sh @@ -51,6 +51,14 @@ for path in apache-ofbiz-$1 apache-ofbiz-$1.zip apache-ofbiz-$1.zip.asc apache-o fi done +# Make sure the release tag exists in both repositories before creating anything +for repo in ofbiz-framework ofbiz-plugins; do + if ! curl -fsIL -o /dev/null https://github.com/apache/$repo/archive/refs/tags/release$1.tar.gz; then + echo -e "${RED}Tag release$1 not found in the apache/$repo repository on GitHub${NC}" + exit 1 + fi +done + # Download the tagged framework sources and unpack the tagged plugins under plugins/ echo -e "## Downloading sources for tag ${GRN}release$1${NC} from GitHub" mkdir -p apache-ofbiz-$1/

