Skip to content

Commit 8d6c281

Browse files
committed
Run deterministic phase 2 catalog migration
1 parent ee6ef54 commit 8d6c281

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Settings refactor phase 2 migration
2+
3+
on:
4+
push:
5+
branches:
6+
- agent/settings-refactor-phase1-safety
7+
paths:
8+
- 'scripts/phase2_catalog_migration.py'
9+
- '.github/workflows/settings-refactor-phase2.yml'
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: write
14+
15+
jobs:
16+
migrate-catalog:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
ref: agent/settings-refactor-phase1-safety
22+
fetch-depth: 1
23+
- uses: actions/setup-python@v5
24+
with:
25+
python-version: '3.11'
26+
- name: Complete catalog coverage
27+
run: python3 scripts/phase2_catalog_migration.py
28+
- name: Validate migrated catalog
29+
run: |
30+
python3 -m unittest tests/test_settings_audit.py
31+
python3 scripts/settings_audit.py --report settings-audit.json
32+
- name: Commit catalog migration
33+
shell: bash
34+
run: |
35+
if git diff --quiet -- src/settings-catalog.json; then
36+
echo 'Catalog is already migrated.'
37+
exit 0
38+
fi
39+
git config user.name 'github-actions[bot]'
40+
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
41+
git add src/settings-catalog.json
42+
git commit -m 'Complete settings catalog coverage for phase 2'
43+
git push origin HEAD:agent/settings-refactor-phase1-safety

0 commit comments

Comments
 (0)