Skip to content

Commit

Permalink
feature/IVYPORTAL-18151-Create-Github-Action-for-Building-Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ntloc-axonivy committed Dec 26, 2024
1 parent e79cb43 commit 6f862a9
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/portal-documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,20 @@ jobs:
MODULES=("AxonIvyPortal/portal-components" "AxonIvyPortal/portal" "AxonIvyPortal/PortalKitTestHelper" "Showcase/portal-user-examples" "Showcase/portal-developer-examples" "Showcase/InternalSupport" "Showcase/portal-components-examples")
BUILT_MODULES=()
set +e # Allow the script to continue even if a build fails
for MODULE in "${MODULES[@]}"; do
MODULE_NAME=$(basename $MODULE)
mvn clean install -f ${MODULE}/pom.xml
BUILT_MODULES+=("$MODULE")
if mvn clean install -f ${MODULE}/pom.xml; then
BUILT_MODULES+=("$MODULE")
else
echo "WARNING: Build failed for $MODULE" >&2
fi
done
echo "built_modules=${BUILT_MODULES[*]}" >> $GITHUB_OUTPUT
set -e # Re-enable exit on error
# Debug logs
echo "DEBUG: BUILT_MODULES = ${BUILT_MODULES[*]}"
echo "built_modules=${BUILT_MODULES[*]}" | tee -a $GITHUB_OUTPUT
Expand Down

0 comments on commit 6f862a9

Please sign in to comment.