Skip to content

Commit

Permalink
fix(excluded-paths): config and warning display logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Hivert committed Sep 4, 2024
1 parent 692807b commit 6e4a15a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/excluded-paths.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@ set -e
# Note: actions always run at the root of the repository


if [ -n "$DTT_DOCS_EXCLUDED_PATH" ] && [ "$PROJECT_NAME" == "DTT-Docs-staging" ]; then
echo "Excluded PATHS in DTT_DOCS_EXCLUDED_PATH are \"$DTT_DOCS_EXCLUDED_PATH\""
if [ "$DTT_DOCS_EXCLUDED_PATH" != "" ]; then
echo "Excluded PATHS in DTT_DOCS_EXCLUDED_PATH are \"$DTT_DOCS_EXCLUDED_PATH\""
if [ "$PROJECT_NAME" == "DTT-Docs-staging" ]; then
echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
echo "@@ @@"
echo "@@ Use of DTT_DOCS_EXCLUDED_PATH should be reserved to production @@"
echo "@@ @@"
echo "@@ >>>>>>>>> Make sure you are not doing something wrong <<<<<<<< @@"
echo "@@ @@"
echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
fi
else
echo "No path are excluded from this build, DTT_DOCS_EXCLUDED_PATH is absent or empty"
echo "No path are excluded from this build, DTT_DOCS_EXCLUDED_PATH is absent or empty"
fi

for excluded_path in ${DTT_DOCS_EXCLUDED_PATH//:/ }; do
Expand Down

0 comments on commit 6e4a15a

Please sign in to comment.