Skip to content

Commit e1932d7

Browse files
committed
Fix mirroring logic
Signed-off-by: Bernát Gábor <[email protected]>
1 parent 80e8b57 commit e1932d7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/mirror.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@ jobs:
1515
mirror:
1616
permissions:
1717
contents: write
18+
environment:
19+
name: mirror
1820
runs-on: ubuntu-latest
1921
steps:
2022
- uses: actions/checkout@v4
2123
with:
2224
fetch-depth: 0
25+
token: ${{ secrets.PA_TOKEN }}
2326
- name: Install the latest version of uv
2427
uses: astral-sh/setup-uv@v3
2528
with:

tasks/mirror.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def run() -> None:
3131
missing_tags = sorted(Version(i) for i in released_tags - existing_tags)
3232

3333
if missing_tags and os.environ.get("GITHUB_ACTIONS"):
34-
check_call(["git", "config", "--global", "user.email", "[email protected]"])
35-
check_call(["git", "config", "--global", "user.name", "Mirroring Mike"])
34+
check_call(["git", "config", "--global", "user.email", "[email protected]"])
35+
check_call(["git", "config", "--global", "user.name", "Bernat Gabor"])
3636
toml = ROOT / "pyproject.toml"
3737

3838
for tag in missing_tags:

0 commit comments

Comments
 (0)