removing the auto-commit portions.

This commit is contained in:
Matt Troutman 2025-03-12 11:29:16 -05:00
parent a2b7cf2226
commit 4aae771644
No known key found for this signature in database

View file

@ -3,7 +3,6 @@ import hashlib
import zipfile
from pathlib import Path
import shutil
import subprocess
def get_font_files(font_folder):
@ -75,15 +74,6 @@ def move_formula_to_formula_folder(formula_path):
print(f"Moved {formula_path} to {formula_folder}/")
def commit_and_push_changes(font_name):
"""Commit and push the changes to the GitHub repository."""
print(f"Committing and pushing changes for {font_name}...")
subprocess.run(["git", "add", "Formula"], check=True)
subprocess.run(["git", "commit", "-m", f"Add {font_name} font"], check=True)
subprocess.run(["git", "push", "origin", "main"], check=True)
print("Changes pushed to GitHub.")
def font_exists(font_name):
"""Check if the formula already exists in the Formula folder."""
formula_path = f"./Formula/font-{font_name.lower()}.rb"
@ -130,10 +120,8 @@ def main():
# Move the formula to the Formula directory
move_formula_to_formula_folder(formula_path)
# Commit and push the changes to the tap repository
commit_and_push_changes(font_package_name)
print(f"Font {font_package_name} has been added successfully.")
print("Remember to commit and push your changes to GitHub manually.")
if __name__ == "__main__":