diff --git a/service_config/version_check.sh b/service_config/version_check.sh index 637f97bc..4f8d49b9 100755 --- a/service_config/version_check.sh +++ b/service_config/version_check.sh @@ -22,11 +22,10 @@ for artifact in "${artifacts[@]}"; do echo "Artifact $ARTIFACT_ID version $VERSION does not exist in Maven Central." artifacts_to_be_released+=("$artifact") fi - done < <(find "../$artifact" -name "pom.xml") + done < <(find "$artifact" -name "pom.xml") done # Join the array elements into a string with a comma as delimiter ARTIFACTS_TO_BE_RELEASED_STR=$(IFS=","; echo "${artifacts_to_be_released[*]}") - echo "Final list of artifacts to be released: ${ARTIFACTS_TO_BE_RELEASED_STR}" # Use GitHub Actions command to set an environment variable - echo "::set-env name=ARTIFACTS_TO_BE_RELEASED::${ARTIFACTS_TO_BE_RELEASED_STR}" \ No newline at end of file + echo "ARTIFACTS_TO_BE_RELEASED=$ARTIFACTS_TO_BE_RELEASED_STR" >> "$GITHUB_ENV" \ No newline at end of file