diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e5d9605..6e3a731 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -144,7 +144,8 @@ jobs: DEP_VER=$(yq ".spack.packages.\"$DEP\".require[0] | match(\"^@(?:git.)?([^=]*)\").captures[0].string" spack.yaml) fi - MODULE_VER=$(yq ".spack.modules.default.tcl.projections.\"$DEP\" | split(\"/\") | .[1]" spack.yaml) + MODULE_NAME=$(yq ".spack.modules.default.tcl.projections.\"$DEP\"" spack.yaml) + MODULE_VER="${MODULE_NAME#*/}" # Get 'version' from 'name/version' module, even if version contains '/' if [[ "$DEP_VER" != "$MODULE_VER" ]]; then echo "::error::$DEP: Version of dependency and projection do not match ($DEP_VER != $MODULE_VER)"