Skip to content

Commit

Permalink
ci: accurately search if the ockam crate is included in release
Browse files Browse the repository at this point in the history
  • Loading branch information
metaclips committed Dec 18, 2023
1 parent 5153c54 commit 4db268c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/scripts/release/crates-to-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4db268c

Please sign in to comment.