Skip to content

Commit d9bc711

Browse files
committed
Rename script for consistency
1 parent f537110 commit d9bc711

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

.github/workflows/rebuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
cd pr-checks
7878
python -m pip install --upgrade pip
7979
pip install ruamel.yaml==0.17.31
80-
python3 sync-back.py
80+
python3 sync_back.py
8181
python3 sync.py
8282
8383
- name: "Merge in progress: Finish merge and push"

pr-checks/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ To sync action versions from generated workflows back to source templates:
2727

2828
```bash
2929
# Dry run to see what would be changed
30-
python3 pr-checks/sync-back.py --dry-run --verbose
30+
python3 pr-checks/sync_back.py --dry-run --verbose
3131

3232
# Actually apply the changes
33-
python3 pr-checks/sync-back.py
33+
python3 pr-checks/sync_back.py
3434
```
3535

3636
The sync-back script automatically updates:

pr-checks/test_sync_back.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
#!/usr/bin/env python3
22
"""
3-
Tests for the sync-back.py script
3+
Tests for the sync_back.py script
44
"""
55

66
import os
7-
import tempfile
87
import shutil
9-
import unittest
10-
from pathlib import Path
11-
from unittest.mock import patch
128
import sys
9+
import tempfile
10+
import unittest
1311

1412
# Add the current directory to sys.path and import the sync_back module
1513
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
1614

1715
# Import the sync-back module
1816
import importlib.util
19-
spec = importlib.util.spec_from_file_location("sync_back", os.path.join(os.path.dirname(__file__), "sync-back.py"))
17+
spec = importlib.util.spec_from_file_location("sync_back", os.path.join(os.path.dirname(__file__), "sync_back.py"))
2018
sync_back = importlib.util.module_from_spec(spec)
2119
spec.loader.exec_module(sync_back)
2220

0 commit comments

Comments
 (0)