Skip to content

Commit b45f76b

Browse files
committed
workflow changes 456
1 parent 37fd1b1 commit b45f76b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
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 }}"

0 commit comments

Comments
 (0)