Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/repo-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,23 +128,23 @@ jobs:
# npm install eslint -g
# eslint . --fix

echo "Running autoflake to remove unused imports..."
pip install autoflake
autoflake --remove-all-unused-imports --recursive --in-place .
# echo "Running autoflake to remove unused imports..."
# pip install autoflake
# autoflake --remove-all-unused-imports --recursive --in-place .

echo "Running ts-prune to remove unused file references..."
npm install -g ts-prune
ts-prune | awk '{print $1}' | xargs rm -f
# echo "Running ts-prune to remove unused file references..."
# npm install -g ts-prune
# ts-prune | awk '{print $1}' | xargs rm -f

rsync -av --delete ${{ env.RSYNC_SITECORE_API_SRC_SERVICES_EXCLUDES }} ../api/ ./api/
rsync -av --delete ../cli/ ./cli/
rsync -av --delete ../ui/ ./ui/
rsync -av --delete ${{ env.RSYNC_SITECORE_UPLOAD_API_SRC_EXCLUDES }} ../upload-api/src/ ./upload-api/src/
rsync -av --delete ../upload-api/migration-sitecore/ ./upload-api/migration-sitecore/

npx ts-remove-unused-imports ./api
npx ts-remove-unused-imports ./ui
npx ts-remove-unused-imports ./upload-api
npx ts-remove-unused-imports
npx ts-prune | awk '{print $1}' | xargs sed -i '' -e '/import/d'
npx prettier --write .

git add .
git commit -m "Sync changes from migration-v2 PR #${{ github.event.pull_request.number }}"
Expand Down
1 change: 0 additions & 1 deletion api/src/services/sitecore.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { orgService } from './org.service.js';
import { getLogMessage } from '../utils/index.js';
import customLogger from '../utils/custom-logger.utils.js';


const append = "a";
const baseDirName = MIGRATION_DATA_CONFIG.DATA
const {
Expand Down
Loading