diff --git a/stratisd-modify/action.yml b/stratisd-modify/action.yml index 870da1e..fb29386 100644 --- a/stratisd-modify/action.yml +++ b/stratisd-modify/action.yml @@ -18,13 +18,15 @@ runs: # Stratis project dependencies specified in Cargo.toml DEPENDENCIES=("devicemapper" "libblkid-rs" "libcryptsetup-rs-sys" "libcryptsetup-rs" "loopdev-3") REPOS=("devicemapper-rs" "libblkid-rs" "libcryptsetup-rs" "libcryptsetup-rs" "loopdev-3") + DEPENDENCY_TYPE=("" "" "" "" "--dev") TREE_ARGS=() for (( i=0; i<${#REPOS[@]}; i++ )); do dependency=${DEPENDENCIES[$i]} repo=${REPOS[$i]} - cargo add $dependency --git https://github.com/jbaublitz/$repo --branch $GITHUB_HEAD_REF + dependency_type=${DEPENDENCY_TYPE[$i]} + cargo add $dependency $dependency_type --git https://github.com/jbaublitz/$repo --branch $GITHUB_HEAD_REF jbaublitz=$? - cargo add $dependency --git https://github.com/mulkieran/$repo --branch $GITHUB_HEAD_REF + cargo add $dependency $dependency_type --git https://github.com/mulkieran/$repo --branch $GITHUB_HEAD_REF mulkieran=$? (( jbaublitz == 0 && mulkieran == 0)) && { echo "Duplicate $repo branches"; exit 1; } TREE_ARGS+=(--invert=$dependency)