Skip to content

Commit

Permalink
Adjusted script
Browse files Browse the repository at this point in the history
  • Loading branch information
dschiese committed Aug 21, 2024
1 parent 0bda106 commit 75f1efd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions service_config/version_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
echo "ARTIFACTS_TO_BE_RELEASED=$ARTIFACTS_TO_BE_RELEASED_STR" >> "$GITHUB_ENV"

0 comments on commit 75f1efd

Please sign in to comment.