Skip to content

Commit 0b34f27

Browse files
authored
Merge pull request #543 from contentstack/feature/workflow
Feature/workflow
2 parents 6789147 + b85d712 commit 0b34f27

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.github/workflows/repo-sync.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -128,23 +128,23 @@ jobs:
128128
# npm install eslint -g
129129
# eslint . --fix
130130
131-
echo "Running autoflake to remove unused imports..."
132-
pip install autoflake
133-
autoflake --remove-all-unused-imports --recursive --in-place .
131+
# echo "Running autoflake to remove unused imports..."
132+
# pip install autoflake
133+
# autoflake --remove-all-unused-imports --recursive --in-place .
134134
135-
echo "Running ts-prune to remove unused file references..."
136-
npm install -g ts-prune
137-
ts-prune | awk '{print $1}' | xargs rm -f
135+
# echo "Running ts-prune to remove unused file references..."
136+
# npm install -g ts-prune
137+
# ts-prune | awk '{print $1}' | xargs rm -f
138138
139139
rsync -av --delete ${{ env.RSYNC_SITECORE_API_SRC_SERVICES_EXCLUDES }} ../api/ ./api/
140140
rsync -av --delete ../cli/ ./cli/
141141
rsync -av --delete ../ui/ ./ui/
142142
rsync -av --delete ${{ env.RSYNC_SITECORE_UPLOAD_API_SRC_EXCLUDES }} ../upload-api/src/ ./upload-api/src/
143143
rsync -av --delete ../upload-api/migration-sitecore/ ./upload-api/migration-sitecore/
144144
145-
npx ts-remove-unused-imports ./api
146-
npx ts-remove-unused-imports ./ui
147-
npx ts-remove-unused-imports ./upload-api
145+
npx ts-remove-unused-imports
146+
npx ts-prune | awk '{print $1}' | xargs sed -i '' -e '/import/d'
147+
npx prettier --write .
148148
149149
git add .
150150
git commit -m "Sync changes from migration-v2 PR #${{ github.event.pull_request.number }}"

api/src/services/sitecore.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { orgService } from './org.service.js';
99
import { getLogMessage } from '../utils/index.js';
1010
import customLogger from '../utils/custom-logger.utils.js';
1111

12-
1312
const append = "a";
1413
const baseDirName = MIGRATION_DATA_CONFIG.DATA
1514
const {

0 commit comments

Comments
 (0)