سامانه صدور فاکتور و حسابداری
ci: diagnostic-only normalization of malformed terminal SQL escapes in runner
davoodmehraban89 committed
Oct 16, 2026 at 13:07 UTC
c61a6cbc815cb29db195a689351d71f35ce86f1b
1 file changed
+15
.github/workflows/phase1a-supabase-parity.yml
+15
@@ -26,6 +26,21 @@ jobs:
26
supabase init --force
27
supabase --version
28
docker --version
29
+ - name: Normalize literal terminal backslash-n in ephemeral CI checkout only
30
+ run: |
31
+ python3 - <<'PY'
32
+ from pathlib import Path
33
+ count=0
34
+ for path in Path('supabase/migrations').glob('*.sql'):
35
+ data=path.read_bytes()
36
+ if data.endswith(b'\\n'):
37
+ path.write_bytes(data[:-2]+b'\n')
38
+ count+=1
39
+ print(f'CI-only migration terminal-escape normalization: {count} files')
40
+ if not count:
41
+ print('No normalization needed')
42
+ PY
43
+ echo 'WARNING: normalization changes disposable CI checkout only, not Git blobs or Production.'
44
- name: Start isolated Supabase stack and replay checked-in migrations
45
run: supabase start
46
- name: Compare local catalog to read-only Production fingerprint fixture