From 7cbc7971336fab8a93e3e5c5114b4b24788e132e Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Fri, 13 Feb 2026 15:00:40 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20ci(circleci):=20add=20kdeets=20i?= =?UTF-8?q?nstallation=20step=20to=20release=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - install kdeets as part of release pipeline for enhanced functionality - ensure kdeets is available before checking crates.io Signed-off-by: Jeremiah Russell --- .circleci/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.circleci/release.yml b/.circleci/release.yml index 245b51f..cbe7c83 100644 --- a/.circleci/release.yml +++ b/.circleci/release.yml @@ -36,6 +36,9 @@ commands: type: string description: "Crate name on crates.io" steps: + - run: + name: install kdeets + command: cargo install kdeets - run: name: Check crates.io for << parameters.package >> command: | @@ -52,8 +55,9 @@ commands: USER_AGENT="circleci-toolkit/1.0 (https://github.com/jerus-org/circleci-toolkit)" - if curl -s -H "User-Agent: ${USER_AGENT}" "https://crates.io/api/v1/crates/<< parameters.package >>/versions" | \ - jq -e ".versions[] | select(.num == \"${VERSION}\")" > /dev/null 2>&1; then + most_recent_published="$(kdeets crate -br cull-gmail)" + + if [[ ${most_recent_published} == ${VERSION} ]]; then echo "Version ${VERSION} exists on crates.io - will skip publish" echo "export SKIP_PUBLISH=true" >> "$BASH_ENV" else