bsc

Comprehensive codebase and cou...
Log | Files | Refs | Activity | README | LICENSE

commit 90257d3f3b7cf125dd4e9daf9da946ee5053cd37
parent ac5bf4a2c70ba4a90585e928f5b6eeefdcea285c
Author: Amit Dutta <mail@amit.is-a.dev>
Date:   Thu,  3 Sep 2026 16:58:40 +0530

Refactor GitHub Actions workflow for Hugging Face sync
Diffstat:
M.github/workflows/main.yml | 23+++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml @@ -33,16 +33,23 @@ jobs: env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | - git clone https://notamitgamer:${HF_TOKEN}@huggingface.co/datasets/notamitgamer/usercontent /tmp/hf_repo - + git clone --filter=blob:none --no-checkout --depth 1 https://notamitgamer:${HF_TOKEN}@huggingface.co/datasets/notamitgamer/cdn /tmp/hf_repo + + cd /tmp/hf_repo + + git sparse-checkout set bsc + + git checkout main + + # 4. Ensure bsc directory exists (in case it is the first time creating it on the remote) + mkdir -p bsc + rsync -av --delete \ --exclude='.git' \ --exclude='MinGW64' \ --exclude='*.exe' \ --exclude='site_files' \ - "$GITHUB_WORKSPACE/" /tmp/hf_repo/ - - cd /tmp/hf_repo + "$GITHUB_WORKSPACE/" bsc/ git lfs install git lfs track "*.pdf" @@ -50,14 +57,14 @@ jobs: git lfs track "*.odt" git add .gitattributes + + git add bsc/ git config user.name "bot-for-notamitgamer[bot]" git config user.email "bot-for-notamitgamer[bot]@users.noreply.github.com" - git add . - git commit \ - -m "Safe auto-sync: updating GitHub files while protecting dynamic folders" \ + -m "Safe auto-sync: updating bsc code index files" \ || echo "No changes to commit" git push origin main
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror