From 3a639f362140f037ff75310aa8db6d80621c577f Mon Sep 17 00:00:00 2001 From: StrangeDrVN <172238701+StrangeDrVN@users.noreply.github.com> Date: Tue, 14 Jul 2026 14:11:47 +0530 Subject: [PATCH] update worker validation --- .github/workflows/check.yml | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index b4b288752..ed0fe4a86 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -63,25 +63,4 @@ jobs: npm run channels:validate -- ${{ steps.files.outputs.channels_all_changed_files }} - name: Check changed workers.txt file if: steps.files.outputs.workers_any_changed == 'true' - run: | - node -e " - const fs = require('fs'); - const lines = fs.readFileSync('workers.txt', 'utf8').split('\n'); - let errors = 0; - - lines.forEach((line, index) => { - if (index === lines.length - 1 && !line.trim()) return; - const lineNum = index + 1; - - if (!line.endsWith('\r')) { - console.error(' workers.txt\n ' + lineNum + ':1 line must use CRLF (Windows) line endings'); - errors++; - } - if (line.includes(' ')) { - console.error(' workers.txt\n ' + lineNum + ':1 line cannot contain spaces'); - errors++; - } - }); - - if (errors > 0) process.exit(1); - " + run: npm run workers:validate