-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from DTLab-LabCN/main
Merging a few infrastructure changes
- Loading branch information
Showing
5 changed files
with
812 additions
and
522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#! /usr/bin/env bash | ||
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\"" | ||
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 "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" | ||
else | ||
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 | ||
echo "Removing \"docs/${excluded_path}\" from current build" | ||
( set -x; rm -rf "docs/${excluded_path}" ) | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.