Skip to content

Commit

Permalink
Merge pull request #8 from DTLab-LabCN/main
Browse files Browse the repository at this point in the history
fix(excluded-paths): config and warning display logic
  • Loading branch information
pruneau628 authored Sep 4, 2024
2 parents 692807b + f5899bc commit 8ae05c5
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 8ae05c5

Please sign in to comment.