Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGoogler authored Sep 27, 2023
1 parent 975368a commit 79e28bb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.zip filter=lfs diff=lfs merge=lfs -text

2 changes: 2 additions & 0 deletions .github/workflows/generate-mmar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ jobs:
run: |
git config --global user.email "[email protected]"
git config --global user.name "Googlers Repo Service"
git lfs install
git add .
git commit -sm "Update MMAR mirrors" || true
git lfs migrate import --include="*.zip" -y
git push || true
build:
Expand Down
2 changes: 2 additions & 0 deletions .lfsconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[lfs]
fetchinclude = zips/**
6 changes: 3 additions & 3 deletions generate-modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ def does_object_exists(repo: Repository, object_path: str) -> bool:
if properties.get("noIndex") or properties.get("gr_ignore"):
continue
else:
# repo_dir = f"module/{repo.name}"
# Repo.clone_from(repo.clone_url, repo_dir)
# shutil.make_archive(f"zips/{repo.name}", 'zip', repo_dir)
repo_dir = f"module/{repo.name}"
Repo.clone_from(repo.clone_url, repo_dir)
shutil.make_archive(f"zips/{REPO_SCOPE}/{repo.name}", 'zip', repo_dir)

# Append to skeleton
meta.get("modules").append(module)
Expand Down

0 comments on commit 79e28bb

Please sign in to comment.