Skip to content

Commit

Permalink
Update Initial.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LIghtJUNction authored Sep 3, 2024
1 parent 10adcdc commit 135b38f
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/Initial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,26 @@ jobs:
with:
ref: ${{ github.ref_name }}

- name: Install Git LFS
run: git lfs install

- name: Fetch LFS files
run: git lfs pull

- name: Track large files with Git LFS
run: |
git lfs track "MyModule/data/app/NetHunterKeX.apk"
git lfs track "MyModule/kalifs-arm64-minimal.tar.xz"
- name: Manage large files with Git LFS
run: |
# 安装 Git LFS
git lfs install
# 拉取 LFS 文件
git lfs pull

# 找到 MyModule 目录下超过 100MB 的文件并通过 Git LFS 进行跟踪
find MyModule/ -type f -size +100M | while read -r file; do
git lfs track "$file"
done

# 添加 .gitattributes 文件和所有被 LFS 跟踪的文件到暂存区
git add .gitattributes
git add MyModule/data/app/NetHunterKeX.apk
git add MyModule/kalifs-arm64-minimal.tar.xz
git add $(git lfs ls-files -n)

# 提交更改
git commit -m "Track large files with Git LFS" || echo "No changes to commit"

- name: init__module.prop
run: |
echo "" > MyModule/module.prop
Expand Down

0 comments on commit 135b38f

Please sign in to comment.