Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
echo $TAG_NAME
gh release create "$TAG_NAME" \
--title "$TAG_NAME" \
--notes "See: https://github.com/astral-sh/ruff/releases/tag/${TAG_NAME/v}" \
--notes "See: https://github.com/astral-sh/ruff/releases/tag/${TAG_NAME}" \
--latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ def main():
if subprocess.check_output(["git", "status", "-s"]).strip():
subprocess.run(["git", "add", *paths], check=True)
subprocess.run(["git", "commit", "-m", f"Mirror: {version}"], check=True)
subprocess.run(["git", "tag", f"v{version}"], check=True)
subprocess.run(["git", "tag", f"{version}"], check=True)
else:
print(f"No change v{version}")
print(f"No change {version}")


def get_all_versions() -> list[Version]:
Expand Down Expand Up @@ -63,7 +63,7 @@ def replace_pyproject_toml(content: str) -> str:
return re.sub(r'"ruff==.*"', f'"ruff=={version}"', content)

def replace_readme_md(content: str) -> str:
content = re.sub(r"rev: v\d+\.\d+\.\d+", f"rev: v{version}", content)
content = re.sub(r"rev: \d+\.\d+\.\d+", f"rev: {version}", content)
return re.sub(r"/ruff/\d+\.\d+\.\d+\.svg", f"/ruff/{version}.svg", content)

paths = {
Expand Down