From 4db268c8bbe994497bd0781693c041c4da9da2de Mon Sep 17 00:00:00 2001 From: Michael Uti Date: Mon, 18 Dec 2023 21:10:17 +0100 Subject: [PATCH] ci: accurately search if the ockam crate is included in release --- tools/scripts/release/crates-to-publish.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/scripts/release/crates-to-publish.sh b/tools/scripts/release/crates-to-publish.sh index 6ed10e756ef..882560a0406 100755 --- a/tools/scripts/release/crates-to-publish.sh +++ b/tools/scripts/release/crates-to-publish.sh @@ -40,15 +40,15 @@ for crate in implementations/rust/ockam/*; do # Check if the src file is updated, if it isn't check if the Cargo.toml file is updated. if git diff "$last_git_tag" --quiet --name-status -- "$crate"/src; then - git diff "$last_git_tag" --quiet --name-status -- "$crate"/Cargo.toml || updated_crates="$updated_crates $crate" + git diff "$last_git_tag" --quiet --name-status -- "$crate"/Cargo.toml || updated_crates="$updated_crates $crate " else - updated_crates="$updated_crates $crate" + updated_crates="$updated_crates $crate " fi done crates_that_must_be_bumped=("ockam" "ockam_app_lib" "ockam_command") for crate in "${crates_that_must_be_bumped[@]}"; do - if [[ $updated_crates == *"implementations/rust/ockam/$crate"* ]]; then + if [[ $updated_crates == *"implementations/rust/ockam/$crate "* ]]; then continue fi