From 74ca4e2918b0f7dc2a080eae74ed480846e8c6e4 Mon Sep 17 00:00:00 2001 From: Joshua David Date: Fri, 31 May 2024 20:28:42 -0700 Subject: [PATCH] correct pipline errors --- .github/workflows/main.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ef4af5b..bb03f19 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,6 +11,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + with: + fetch-depth: 0 # Ensure full clone to avoid shallow update issues - name: Install Git LFS run: sudo apt-get install git-lfs - name: Install Hugging Face Hub @@ -21,7 +23,6 @@ jobs: HF_USERNAME: ${{ secrets.HF_USERNAME }} run: | git lfs install - huggingface-cli login --token $HF_TOKEN - git config --global credential.helper store - echo "https://${{ secrets.HF_USERNAME }}:${{ secrets.HF_TOKEN }}@huggingface.co" > ~/.git-credentials - git push https://huggingface.co/${{ secrets.HF_USERNAME }}/LongRoPE master:main --force + huggingface-cli login --token $HF_TOKEN --add-to-git-credential + git remote add huggingface https://huggingface.co/${{ secrets.HF_USERNAME }}:${{ secrets.HF_TOKEN }}@huggingface.co/${{ secrets.HF_USERNAME }}/LongRoPE + git push huggingface master:main --force